[INACTIVE][ADMN/SEC/FUN/TP/RPG] NetherBan v0.6.3 - Maintenance [860-953]

Discussion in 'Inactive/Unsupported Plugins' started by DreadKyller, Jun 29, 2011.

  1. Offline

    DreadKyller

    NetherBan V0.6.8
    Condemn your users to an eternity of suffering!
    Note: I am not stealing this plugin! Go to original thread, I'm picking it up during Walker's 7 week leave. All credit goes to @Walker Crouse! This thread was only made to make it easier for my to post updates. When Walker Crouse gets back posting will return to original thread.
    During @Walker Crouse 7 week leave he has asked me to maintain his netherban plugin for him. Original thread can be found here for more details.
    Download: [Jar] [Zip]
    What is NetherBan?
    • NetherBan is an alternitive method to banning/kicking a user, don't you ever wish there was something in the middle? when the user could not just come back in, but also not have to be banned for a possibly smaller action? This is the middle.
    • NetherBan allows you to banish players to, well, the netherworld of your choice, of course you can use any other world than the nether.
    • You can kick or ban to the netherworld, while banished you can not:
      • Build(If Configured!)
      • Destroy Blocks
      • Chat
      • Use Commands
      • Use Portals
    Features:
    • Ban players to the Nether
    • Kick players to the Nether
    • White-list
    • Configurable
    • Blacklist items
    • Permissions support (not required)
    • Lightning strikes on banish (configurable)
    Configuration:

    Click Me! :) (open)

    #NetherBan Config​
    #Sat Jun 25 12:45:38 EDT 2011​
    Banished-Cant-Build=true​
    Kick-on-Death=false​
    Normal-World-Name=world
    PvP-Disabled-For-Banished=true​
    Banished-Cant-Empty-Bucket=true​
    Blacklist-Lava=false​
    Banished-Cant-Destroy=true​
    Display-Lightning-On-Banish=true
    Nether-World-Name=world_nether​
    Entities-Target-Banished=false​
    Blacklist-TnT=false​
    Banished-Cant-Use-Commands=true​
    Banish-on-Death=false​
    Blacklist-Fire=false​
    Mute-on-Ban=false​
    Banished-Have-no-Inventory=false​
    Save-Inventory=true​

    Permissions and Commands:
    Click Me Too! :) (open)

    netherban.nbban - Allow /nbban <player>
    netherban.nbkick - Allow /nbkick <player>
    netherban.nbunban - Allow /nbunban <player>
    netherban.whitelist - Allow /nbwl <player> || /nbwhitelist <player>
    --
    /netherban <player> | Ban a player to the Nether!
    /nbunban <player> | Unban a player from the Nether!
    /nbwhitelist <player> | Whitelists a player and makes them safe from banishment!
    /nbhelp | Displays help menu
    /nbversion | Displays NetherBan version you have.


    Bugs:
    • Players that are unbanned may not teleport back up to normal world. Trying to fix.
    Todo:
    • Private chat channels for the banned
    • Any suggestions?
    Changelog:

    Version 0.6.8
    • Fixed bug where plugin could not retrieve the main path (85% guarantee)

    Version 0.6.3
    • Used the full path of the craftbukkit.jar to define base path to hopefullly finaly fix some Linux compatibility issues

    Show Spoiler
    Version 0.5.8
    • major bugfix - Fixed some compatibility issues with Linux systems. Thanks @CainFoool

    Version 0.5.72
    • Found source of IOException with file creation.
    Version 0.5.7
    • Bugfix - used @Juze recommendation to use .ymal for banished and whitelist, hopefully fixes bug.
    • Feature - World differentiation, seperate banished/yml for each world, meaning change the world name in the config file and then change it back later to have the same banned people. Same with inventories.
    Version 0.5.2
    • Bugfix - Finally got a hint on fixing the banished.txt only storing one player.
    • Bugfix - Removed bug cause by folder not being created before file
    Version 0.5.2
    • Bugfix (could not reproduce the bug, so hopefully) - Fixed banished.txt clearing automatically
    • Feature - Added "Banished-Have-no-Inventory" option in NetherBan.prop (Clear inventory on banish)
    • Feature - Added "Save-Inventory" option in NetherBan.prop (Save inventory on banish and load it again on un-banish)
    • Added saving and loading inventory
    • Added auto-updating config, no need to delete old one like previous updates
    Version 0.5.1

    • Bugfix - Fixed stupid bug where plugin had to be reloaded again after loading it (Thanks @tips48 )
    Version 0.5

    • Bugfix - Players can now be banished while offline
    • Bugfix - Checks on player login to see if a player is banned and makes sure they are in the Nether
    • Bugfix - Players can now be unbanished while offline
    • Feature - Added "Banish-on-Death" option in the NetherBan.prop
    • Feature - Added "Kick-on-Death" option in the NetherBan.prop
    • Added "Entities-Target-Banished" option in the NetherBan.prop
    Version 0.4.1

    • Bugfix - Made fallback for error when you don't configure the plugin correctly.
    Version 0.4

    • Bugfix - Whitelist command is back
    • Bugfix - Improved consistency
    • Feature - Lightning on banish (configurable)
    • Restructured code
    Version 0.3.1

    • Bugfix - Removed players can be banished while offline
    • Bugfix - Removed players can be whitelist while offline
    • Bugfix - Removed whitelist command
    Version 0.3

    • Feature - Added version command (/nbversion)
    • Feature - Added help menu (/nbhelp)
    • Bugfix - Players can now be banished while offline
    • Bugfix - Players can now be whitelisted while offline
    • Bugfix - Fixed adding yourself whitelist bans you
    Version 0.2

    • Bugfix - Fixed the plugin not liking when you banned people who where in the Nether already.
    • Feature - Added whitelist.
    • Bugfix - Chat errors
    • Feature - Added whitelist command (/nbwl || /nbwhitelist)
    • Feature - Added alias for /nbban (/netherban)
    • Bugfix - Fixed Permissions completely!
    Version 0.1.1

    • Bugfix - Added "Banished-Cant-Use-Commands" option in the NetherBan.prop file
    • Bugfix - Minor chat bug
    Version 0.1

    • Initial release!
     
  2. Offline

    wassilij

    Code:
    2011-06-29 14:47:40 [INFO] [NetherBan] Aismael was banished to the Nether!
    2011-06-29 14:47:40 [SEVERE] java.io.IOException: No such file or directory
    2011-06-29 14:47:40 [SEVERE]     at java.io.UnixFileSystem.createFileExclusively(Native Method)
    2011-06-29 14:47:40 [SEVERE]     at java.io.File.createNewFile(Unknown Source)
    2011-06-29 14:47:40 [SEVERE]     at com.aim.wjcrouse913.NetherBan.PlayerInventoryScanner.save(PlayerInventoryScanner.java:34)
    2011-06-29 14:47:40 [SEVERE]     at com.aim.wjcrouse913.NetherBan.NetherBan.onPlayerBan(NetherBan.java:382)
    2011-06-29 14:47:40 [SEVERE]     at com.aim.wjcrouse913.NetherBan.NetherBan.onCommand(NetherBan.java:234)
    2011-06-29 14:47:40 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-06-29 14:47:40 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-06-29 14:47:40 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-06-29 14:47:40 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-29 14:47:40 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'nbban' in plugin NetherBan v0.5
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at com.aim.wjcrouse913.NetherBan.PlayerInventoryScanner.save(PlayerInventoryScanner.java:45)
        at com.aim.wjcrouse913.NetherBan.NetherBan.onPlayerBan(NetherBan.java:382)
        at com.aim.wjcrouse913.NetherBan.NetherBan.onCommand(NetherBan.java:234)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    :(

    Edit:// with safe-inventory=false i dont get the error above .. but again .. the banished.txt will be everytime overwritten, when i ban someone to the nether :(

    Edit://²
    My Server-Info:
    Code:
    #2011-05-29 14:53:11
    
    #Server info:
    Server name - [GER] FreeMiner
    Server port - 25565
    Minecraft version - 1.6.6
    Bukkit build - 935
    Bukkit version - git-Bukkit-0.0.0-892-ga9ddbaa-b935jnks (MC: 1.6.6)
    
    #Plugins info:
    AfkKick - 1.4
    BananaChunk - 4.6
    Cenotaph - 1.5.2
    CommandBook - 1.5.2-customized
    FalseBookBlock - 0.86.2alpha
    FalseBookCart - 0.86.2alpha
    FalseBookCore - 0.86.2alpha
    FalseBookExtra - 0.86.2alpha
    FalseBookIC - 0.86.2alpha
    FirstJoin - 1.2
    GravelClay - 1.2.5
    HeroicDeath - 1.8.1.156
    HomeX - 0.6
    iChat - 2.3.1
    ItemVoid - 1.1
    LogBlock - 1.10
    LogBlockQuestioner - 0.02
    LWC - 3.11
    MessageChanger - 0.24
    MinecraftViewer - 1.0c
    MyWarp - 2.0
    NaturalGiants - 1.3
    NetherBan - 0.5
    NoCheat - 1.06
    NoWeather - 1.5
    Permissions - 3.1.6
    PluginInfo - 0.1.3
    RandomPort - 1.0
    SimpleReserve - 0.2.6
    StarterKit - 0.4a
    Tables - 0.2
    TimeAnnounce - 1.1
    TimeFold - 0.4
    TimeRank - 0.0.9
    Tips - 1.0.1
    TKeepGrowing - 0.1.5
    Tombstone - 1.2.9
    TreeAssist - 1.1
    Vanilla - 0.1
    Votifier - 1.3
    WorldEdit - 4.6
    WorldGuard - 5.2.2
     
  3. Offline

    DreadKyller

    um, ok, you are getting errors that seem to come from no where, In testing no such error came up. I'll look into it but...

    [EDIT] Ok, that's probably part of the problem, looked at your error and here is a problem, I think the reasont he banished.txt is disappearing on your computer is something about the Unix OS, because on that log it's getting an error creating the file with the unix file system, if that's the case it's probably having errors in writing to the file as well, I have no idea how to fix that because I do not know that OS, but the create file works when I use it, lets see what others get.

    [EDIT 2] Ok, found the error, I was trying to make the file without making the folder it goes in, I'll update very quickly. Also the null pointer exception will be fixed.

    [EDIT 3] Oo, that's what you mean by overwritten, like it only holds one player? If so hold on, I'll fix that before updating.
     
  4. Offline

    wassilij

    I try to run this plugin without any other plugins .. maybe its because of an other plugin.

    Yes if the file is overwritting on each ban the file can only hold 1 player banned :eek:

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  5. Offline

    DreadKyller

    Updated to 0.5.3, included bug fix for NullPointerException and fixed (almost guaranteed this time) the overwriting with the banished.txt
     
  6. Offline

    wassilij

    Its again overwritten :(

    Default config only changed the world names.

    Error:
    Code:
    2011-06-29 15:32:53 [INFO] [NetherBan] Aismael was banished to the Nether!
    2011-06-29 15:32:53 [SEVERE] java.io.IOException: No such file or directory
    2011-06-29 15:32:53 [SEVERE]     at java.io.UnixFileSystem.createFileExclusively(Native Method)
    2011-06-29 15:32:53 [SEVERE]     at java.io.File.createNewFile(Unknown Source)
    2011-06-29 15:32:53 [SEVERE]     at com.aim.wjcrouse913.NetherBan.PlayerInventoryScanner.save(PlayerInventoryScanner.java:34)
    2011-06-29 15:32:53 [SEVERE]     at com.aim.wjcrouse913.NetherBan.NetherBan.onPlayerBan(NetherBan.java:385)
    2011-06-29 15:32:53 [SEVERE]     at com.aim.wjcrouse913.NetherBan.NetherBan.onCommand(NetherBan.java:234)
    2011-06-29 15:32:53 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-06-29 15:32:53 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-06-29 15:32:53 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-06-29 15:32:53 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-29 15:32:55 [INFO] §bVIP§f marvin_whatever: pls
    2011-06-29 15:32:55 [INFO] §f lolzocker99: komm
    2011-06-29 15:32:59 [INFO] [NetherBan] wassilij was banished to the Nether!
    2011-06-29 15:33:12 [INFO] §bVIP§f marvin_whatever: so bleibt die brücke bitte
    2011-06-29 15:33:14 [INFO] §f Amdon1999: neinnnnnn meine todeskiste :(
    2011-06-29 15:33:18 [INFO] [NetherBan] Aismael was banished to the Nether!
    2011-06-29 15:33:18 [INFO] [NetherBan] Aismael has been banished to the Nether!
    2011-06-29 15:33:18 [INFO] §f lolzocker99: meinste das holz
    2011-06-29 15:33:24 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'nbunban' in plugin NetherBan v0.5
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at com.aim.wjcrouse913.NetherBan.PlayerInventoryScanner.load(PlayerInventoryScanner.java:70)
        at com.aim.wjcrouse913.NetherBan.NetherBan.onPlayerUnbanned(NetherBan.java:450)
        at com.aim.wjcrouse913.NetherBan.NetherBan.onCommand(NetherBan.java:258)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 6 more
    2011-06-29 15:33:32 [INFO] §f Amdon1999: wassi :(
    2011-06-29 15:33:35 [INFO] §f Kyuze: wassi kannst du einen bereich der olymparena in pvp machen?
    2011-06-29 15:33:37 [INFO] §f xtottix: weg sit weg amdon
    2011-06-29 15:33:38 [INFO] §bVIP§f marvin_whatever: ich meinte das
    2011-06-29 15:33:42 [INFO] §f xtottix: sry
    2011-06-29 15:33:43 [INFO] [NetherBan] wassilij was banished to the Nether!
    2011-06-29 15:33:43 [INFO] [NetherBan] wassilij has been banished to the Nether!
    2011-06-29 15:33:43 [INFO] /95.211.33.147:38137 lost connection
    2011-06-29 15:33:43 [INFO] §f Amdon1999: mein ksite
    2011-06-29 15:33:50 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'nbunban' in plugin NetherBan v0.5
        at org.bukkit.command.PluginCnd.PluginCommand.execute(PluginCommand.java:35)
        ... 6 moreommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at com.aim.wjcrouse913.NetherBan.PlayerInventoryScanner.load(PlayerInventoryScanner.java:70)
        at com.aim.wjcrouse913.NetherBan.NetherBan.onPlayerUnbanned(NetherBan.java:450)
        at com.aim.wjcrouse913.NetherBan.NetherBan.onCommand(NetherBan.java:258)
        at org.bukkit.comma
    Edit:// Again, if Save-Inventory=false then i dont get the error above ..

    If i ban someone1, i can see him in the banished.txt
    when i ban someone2, i can see him in the banished.txt, but i can't see someone1 in the banished.txt.
    But someone1 is in the nether and i cant unban him, because he isn't banned, because i banned someone2, and that overwritten the banished.txt, so only someone2 is banned, but they are both in the nether ^^
     
  7. Offline

    DreadKyller

    @wassilij want me to show you my list from my testing?

    Code:
    DreadKyller
    Dread
    Kyller
    Dreadd
    Dred
    DreadKiller
    DreadKyler
    It didn't overwrite and I'm using the same exact configuration you are, default, so I have no idea what is going on. It's physicallly impossible that it's overwriting, there is nothing in the code that would overwrite. are you sure you updated? Because sometimes it takes github a while to update the file. I updated a file on github, downloaded it and still got the old file, I went to download it again still old file, 2 minutes later I got to download it it's the new one. To make sure I'll attach the file right in this thread.

    As for the IOException same as above, you are getting errors that don't make sense, the directory is created before the file, so the path does exist, the file doesn't exist yet because the error is ocuring in the process of making it. Try this, manually add a folder called PlayerINV to the /plugins.NetherBan folder, it should be like plugins/NetherBan/PlayerINV/
     
  8. Offline

    wassilij

    I really dont know :(

    The error said that PlayerINV not existing .. but i look in FTP .. and it is there .., when i ban me and then player2, only player2 is in the banished.txt

    i downloaded your attached file:(

    but thx that you tried to fix that .. ;(
     
  9. Offline

    DreadKyller

    hmm... now my banished.txt is messing up as well... it wasn't just a second ago. I'll try updating later, I g2g for now...
     
  10. Offline

    wassilij

    I asked Juze if he could take a look at your source:
     
  11. Offline

    DreadKyller

    .txt will server for this purpose, we do not want to assign properties, we are only writing lines of text and reading them, there is no need for ymal unless we need to store something with it. And @Juze there is prop.save() every time we modify the property file, the property file has no error, everything is saving and loading 100%, the proble is something else. And like I said above, the reason we are not using .ymal for the banned list, we are doing this similar to the normal whitelist, blacklist, ops.txt etc, we only want a list of names, not a list of names that have a value attached to them, at least until we find a purpose for it.

    I'm still looking into this, but this is not the only thing I have to do throughout my day.
     
    wassilij likes this.
  12. Offline

    Juze

    I meant for your config, though it's unrelated. I cannot come up with a solution, .txt is fine for banned users, I'd maybe use .db or SQLite.
     
  13. I banished someone and upon death they spawned back at their home. If it helps I'm using MyWarp and MyHome to teleport people to their home upon death.

    Is it possible you could make it so users also cannot kill mobs? I use mobbounty and it gives rewards when you kill mobs.

    I would like for them to literally be bored as hell, just avoiding death.
     
    wassilij likes this.
  14. Offline

    DreadKyller

    well I can't help with other plugins unless this plugin uses highest priority. Hmm, maybe customizable priority in the future.

    @Juze updated using .yml, hopefully fixes bug, thank you.

    Version 0.5.7 is released.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  15. Offline

    wassilij

    Code:
    2011-06-30 09:23:44 [SEVERE] java.io.IOException: No such file or directory
    2011-06-30 09:23:44 [SEVERE]     at java.io.UnixFileSystem.createFileExclusively(Native Method)
    2011-06-30 09:23:44 [SEVERE]     at java.io.File.createNewFile(Unknown Source)
    2011-06-30 09:23:44 [SEVERE]     at com.aim.wjcrouse913.NetherBan.NetherBan.onPlayerBan(NetherBan.java:371)
    2011-06-30 09:23:44 [SEVERE]     at com.aim.wjcrouse913.NetherBan.NetherBan.onCommand(NetherBan.java:236)
    2011-06-30 09:23:44 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-06-30 09:23:44 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-06-30 09:23:44 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-06-30 09:23:44 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    When i try to ban someone.

    I tried it on my PC (no other plugins .. only bukkit and netherbans) .. on my Server is debian .. on my PC is Windows 7 .. completly the same error like above ..

    Code:
    11:26:07 [SCHWERWIEGEND] java.io.IOException: Das System kann den angegebenen Pf
    ad nicht finden
    11:26:07 [SCHWERWIEGEND]        at java.io.WinNTFileSystem.createFileExclusively
    (Native Method)
    11:26:07 [SCHWERWIEGEND]        at java.io.File.createNewFile(Unknown Source)
    11:26:07 [SCHWERWIEGEND]        at com.aim.wjcrouse913.NetherBan.NetherBan.onPla
    yerBan(NetherBan.java:401)
    11:26:07 [SCHWERWIEGEND]        at com.aim.wjcrouse913.NetherBan.NetherBan.onCom
    mand(NetherBan.java:246)
    11:26:07 [SCHWERWIEGEND]        at org.bukkit.command.PluginCommand.execute(Plug
    inCommand.java:35)
    11:26:07 [SCHWERWIEGEND]        at org.bukkit.command.SimpleCommandMap.dispatch(
    SimpleCommandMap.java:129)
    11:26:07 [SCHWERWIEGEND]        at org.bukkit.craftbukkit.CraftServer.dispatchCo
    mmand(CraftServer.java:298)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.NetServerHandler.handleC
    ommand(NetServerHandler.java:725)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.NetServerHandler.chat(Ne
    tServerHandler.java:691)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.NetServerHandler.a(NetSe
    rverHandler.java:684)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.Packet3Chat.a(Packet3Cha
    t.java:32)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.NetworkManager.b(Network
    Manager.java:223)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.NetServerHandler.a(NetSe
    rverHandler.java:75)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.NetworkListenThread.a(So
    urceFile:105)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.h(Minecr
    aftServer.java:451)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.MinecraftServer.run(Mine
    craftServer.java:361)
    11:26:07 [SCHWERWIEGEND]        at net.minecraft.server.ThreadServerApplication.
    run(SourceFile:422)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  16. Offline

    DreadKyller

    well this is extremely strange, I get 100% no errors banning or unbanning myself, r the 3 people I'm testing it with, so I am extremely confused what is going wrong. Maybe it's windows 7, i have no idea how to fix that what it gives no errors on anyone elses computer. You said earlier that even with that error the file was still created though right, which making this even more confusing.

    EDIT!

    Strange, every time you get an error happens to be when I'm using a configuration file, so I don't know how to fix this error, unless someone else can get this same exact error and find out where it's coming from I can't help.

    EDIT 2!

    Ok, found the error I think. I set the directory inside of onEnable but for some reason it stays "" so what I try to make the directories it makes nothing it seems, then it can't create the file because the path it was supposed to use did not create... repacking, it'l be uploading in about 5 minuts

    @wassilij I take it it fixed it because you liked my post?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
    wassilij likes this.
  17. Offline

    wassilij

    I liked because i like that you tried it .. but it's not fixed :(

    Code:
    2011-06-30 21:56:39 [SEVERE] java.io.IOException: No such file or directory
    2011-06-30 21:56:39 [SEVERE]     at java.io.UnixFileSystem.createFileExclusively(Native Method)
    2011-06-30 21:56:39 [SEVERE]     at java.io.File.createNewFile(Unknown Source)
    2011-06-30 21:56:39 [SEVERE]     at com.aim.wjcrouse913.NetherBan.NetherBan.onPlayerBan(NetherBan.java:371)
    2011-06-30 21:56:39 [SEVERE]     at com.aim.wjcrouse913.NetherBan.NetherBan.onCommand(NetherBan.java:236)
    2011-06-30 21:56:39 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-06-30 21:56:39 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    2011-06-30 21:56:39 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-06-30 21:56:39 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  18. Offline

    DreadKyller

    ... this is making 0 sense, because it's phisically impossible that the directory does not exist, I mean her is the script

    PHP:
    File file = new File("plugins/NetherBan/"+nethername+"/banished.yml");
    File dir = new File("plugins/NetherBan/"+nethername+"/");
    dir.mkdirs();
    if(!
    file.exists()){
        
    file.createNewFile();
    }
    how is the directory not there? I make the directory it needs with dir.mkdirs(make dirs) I don't think that error is not going to be fined anytime soon because there is no reason it should be happening in the first place.

    @wassilij can you tell me a few things?
    1. Does the file still get created even with the error?
    2. If so does it store all banished usernames instead of just one?
    3. Are you getting any errors other than the IOException for the file?
     
  19. Offline

    wassilij

    Earlier when i /nbban someone, he was in the banished.txt, but only one could be in the banished.txt .. now .. the files are created, but he don't write the names to banished.txt and i get the error i mentioned above. :(

    Edit:// i mean banished.yml
     
  20. Offline

    DreadKyller

    wow, this is really messed up, you are getting results that I can not replicate at all, I can banish 3 people and have them all in the .yml, I banish people and get no error, what the f*k is going on with this.
     
  21. Offline

    wassilij

    I really don't know :(

    I'm really sorry, that i make so much work for you :(
     
  22. Offline

    DreadKyller

    no, no problem, this is the type of thing I agreed to do in Walker's absence, was to fix bugs and keep it going, so it's not a problem, this is just alluding me, and unless I can get others to replicate the error I just can't do anything about it, sorry.
     
  23. Offline

    wassilij

    I could give you server acces and you try it :)
     
  24. Offline

    DreadKyller

    um, sure, but I'm fairly sure it's not the person getting banned and the server itself, so me being in, the script would still be run from your computer, it would not make any difference.
     
  25. Offline

    CainFoool

    I've been into Linux for a little over a year ago and I believe it is meant to be like this:
    File dir = new File("/plugins/NetherBan/"+nethername+"/"); (with the /)

    It is a problem with Unix based OS's as you said you're on Windows and for support to work alltogether you must add a / in the new File("/plugins"); part.
    That should fix your problem.
     
  26. Offline

    DreadKyller

    @CainFoool ok, I will try that, but what's with the minus's instead of plus's?

    @wassilij updated

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  27. Offline

    Plague

    I see you are updating, please update the title CB version then
     
  28. Offline

    DreadKyller

    @Plague Ok, I have not updated to latest craftbukkit, but I will do so very soon because there is no breakages it should be as simple as delete and replace. I need to go for about an hour and I'll update after that.

    @Plague updated

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  29. Offline

    wassilij

    I get this error with /nbban:
    Code:
    2011-07-03 17:47:16 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'nbban' in plugin NetherBan v0.5
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at org.bukkit.craftbukkit.CraftServer.getWorld(CraftServer.java:490)
        at com.aim.wjcrouse913.NetherBan.NetherBan.onCommand(NetherBan.java:195)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    after that i deletet the netherbans folder, because i wanted to test new configs .. but the .jar dont generate the new netherbans folder.

    Now i haven't a netherbans folder :(
     
  30. Offline

    DreadKyller

    well deleting anything will make it null, you see, the line you're getting an error on is when it's trying to see if the world even exists, however it doesn't load the name correctly, maybe it can't find file or something, and then it tries to get a world by the name of null, which is nothing. But it should make the folders, I do not get what the problems are. No one I can help test this, which it 4 of my friends (one has Linux btw) and none of them or me can replicate the errors at all.
     

Share This Page