Inactive [GEN] DefaultCommands v4.0.0 - The "default" plugin [1.4.5-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by vildaberper, Mar 2, 2011.

  1. Offline

    Kenpari

    Yes, I'm using the latest one.

    EDIT: Here's the error I get in the server window.

    Code:
    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'setspawn' in plugin DefaultCommands v1.5.0
    at org.bukkit.command.PluginCommand.execute<PluginCommand.java:33>
    at org.bukkit.command.SipmleCommandMap.dispatch<SimpleCommandMap.java:79>
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand<Craftserver.java:183>
    at net.minecraft.server.NetServerHandler.c<NetServerHnadler.java:619>
    at net.mincraft.server.NetServerhNadler.chat<NetServerHanlder.java:582>
    
    at net.minecraft.server.NetServerHandler.a<NetServerHnalder.java:576>
    at net.minecraft.server.Packet3Chat.a<SourceFile:24>
    at net.minecraft.server.NetworkManager.a<SourceFile:230>
    at net.minecraft.server.netServerHnalder.a<NetServerHnalder.java:75>
    at net.minecraft.server.networkListenThread.a<SourceFile:100>
    at net.minecraft.server.MinecraftServer.h<MinecraftServer.java:357>
    at net.minecraft.server.MinecraftServer.run<SourceFile:366>
    Caused by: java.lang.NoSuchMethodError: org.bukkit.World.setSpawnLocataion<III>Z
    at com.vildaberper.bukkit.DefaultCommands.DefaultCommands.SetSpawn<DefaultCommands.java:607>
    at com.vildaberper.bukkit.DefaultCommands.DefaultCommands.onCommand<DefaultCommands.java:121>
    at org.bukkit.command.PluginCommand.exectue<PluginCommand.java:31>
    ... 12 more
    >
     
  2. Offline

    GanjaRoach

    ty vildaberper everything is working great now! would it be possible to add kits? I quit using essentials becuase it caused a lot of problems with other plugins.. Glad you made this plugin save everyone trouble of dealing with multiable plugins.
     
  3. Offline

    vildaberper

    Ah, update craftbukkit.
    http://ci.bukkit.org/job/dev-CraftBukkit/

    yep, kits are coming!
     
  4. Offline

    TouchPro2

    Whenever I try a command it says that I don't have permission.

    Here is what I have.

     
  5. Offline

    vildaberper

    remove the linebreaks, if that dont work update your permissions plugin :)
    Look into your permissions plugins thread for help, the permissions are working.
     
  6. Offline

    david thomson

    how do you update craft Bukkit on that link. can someone please help me it is very confusing
     
  7. Offline

    loikachu

    Got a problem :
    Any user on my server now can use /tp xxx
    even if i set their permission to 'general.spawn' only.
    tried to add the permission '-defaultcommands.*' but won't work...

    Have an issue?
     
  8. Offline

    vildaberper

    Ill look into it, maybe i missed something.
    Are the other permissions working like they should?

    Download this: http://ci.bukkit.org/job/dev-CraftBukkit/499/artifact/target/craftbukkit-0.0.1-SNAPSHOT.jar
    Its the direct link to the latest CraftBukkit (atm).
     
  9. Offline

    tekac

    Kudos to you for making this plugin. I've been wanting to switch off of Essentials for awhile now! Don't go down their path and make this bloatware please D:

    Is there a way to configure the time for /afk? Its set to 5 minutes and players are getting spammed with it. I'd love to change it to 15 minutes.

    Thanks

    EDIT: I have this working smoothly on #493, with GroupManager 1.0 Alpha 3
     
  10. Offline

    vildaberper

    Yep, settings are coming :D
    Youll be able to change alot of things when im done with those :)

    And Im fixing the afk detection, itll sense if the players pitch and yaw is the same too :)
     
  11. Offline

    Andrewgbest

    Add /home and /sethome pweese ;D, great plug-in btw.
     
  12. Offline

    vildaberper

    Yep, its coming!
    I just need to make a good code that can read / write files in folders :)
     
  13. Offline

    phaed

    Can you make a settings file where you can choose which plugins you want to completely disable? /spawn is conflicting with spawncontrol plugin and i cant seem to turn this one off.
     
  14. Offline

    vildaberper

    Yep, its coming with the settings Im working on :)

    EDIT: Settings added!
     
  15. Offline

    NINJ4

    Kicking or banning from the console results in this type of error:
    Code:
    12:31:58 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'kick' in plugin DefaultCommands v1.6.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:33)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:381)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:366)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
            at com.vildaberper.bukkit.DefaultCommands.DefaultCommands.Kick(DefaultCommands.java:2571)
            at com.vildaberper.bukkit.DefaultCommands.DefaultCommands.onCommand(DefaultCommands.java:515)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:31)
            ... 6 more
    And the player targetted does not get banned/kicked.
     
  16. Offline

    vildaberper

    What permissions plugin? -version?
    What CraftBukkit build?
     
  17. Offline

    phaed

    This ius on my server as well. GrouManager 1.0 prealpha 3, cb 493
     
  18. Offline

    vildaberper

  19. Offline

    phaed

    That was pre-alpha-3, released last week and before alpha, then comes alpha 1, then 2.... His version scheme is all fucked up.
    --- merged: Mar 7, 2011 10:59 PM ---
    Code:
    [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'ban' in plugin DefaultCommands v1.6.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:33)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:381)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:366)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
            at com.vildaberper.bukkit.DefaultCommands.DefaultCommands.Ban(DefaultCommands.java:2794)
            at com.vildaberper.bukkit.DefaultCommands.DefaultCommands.onCommand(DefaultCommands.java:550)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:31)
            ... 6 more
    
    Here is the same error with theGroupManager 1.0 alpha-2. Ok so shooting fish in bukkits dont work. The error is telling you "Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player". Which is you basically casting to Player without checking the type first, which in this case since the command is being sent through console is ColouredConsoleSender. I'm sure this is happening on all versions of Craftbukkit and GroupManager.
     
  20. Offline

    vildaberper

    WOW, how could I miss that?
    I didnt even know that commands worked in the console!
     
  21. Awesome plugin - we just started using it yesterday. :)

    Is there a way though to disable the message that a player gets informing them that someone teleported to them? It's so our mods/admins can /vanish and tp to people undetected - useful for tracking down people using hacks.
     
  22. Offline

    vildaberper

    Yeah, Im working on it. Everything will be customizeable :D
    But first, I have to fix the commands in console.
     
  23. Offline

    Jaspah

    Instead of using that long list, you can use an asterisk to allow permissions for all DefaultCommands permissions. Use this format instead:

    Code:
    - 'defaultcommands.*'
    I think that only works with the actual Permissions mod... not sure sorry! :S
     
  24. Offline

    alexfire

    Is it at all possible for your plugin to read from an items.txt file? as far as I can tell it does not and i have a terrible memory with item codes lol Thanks for any help with this matter!
     
  25. Offline

    Jaspah

    I'm having a problem with your plugin creating the directory and settings file on my server. I'm using Ubuntu Server 10.04 and your plugin creates a directory named "plugins\DefaultCommands" and creates the settings file named "plugins\DefaultCommands\settings.txt" in my root craftbukkit directory. If I try to manually create the directories it will not read from them and will automatically recreate directory and settings files with their improper names.

    The plugin itself works fine, I only noticed this when I went to adjust the AFK kick timer and didn't find a setting file where I thought I would.
     
  26. Offline

    vildaberper

    It takes names too ;) Ex: stone, arrow, ladder, wooden_spade
    Hm, this is wierd. I guess its System.getProperty("line.separator")) that doesnt work on Linux systems.
    On the site that I learned this stuff, it said that this was cross-platforms "/
    But its working, right? Ill look into this when Ive added the other requests (kits / homes).
     
  27. Offline

    Jaspah

    Yes it's working fine -- I just edited the "plugins\DefaultCommands\settings.txt" file to adjust the AFK timer kick and it seems to be reading it correctly.
     
  28. Offline

    phaed

    So where is this settings file? I don't see plugins/DefaultCommands. I have even created this folder and given it permissions in hope your plugin would create the settings file there. No luck.
     
  29. Offline

    vildaberper

    re
    really?
    It should work, at least like this:
    It works perfectly for me, but Im on windows "/
    It should be in "plugins\DefaultCommands\settings.txt"

    In fact, it cant load correctly if it cant create/read the file! It creats the default settings-file and then reads it. Itll just end up in an infinite loop if it cant read the file.
    So it should be somewhere in your directory.

    And btw, do you know any alternatives to: System.getProperty("line.separator"))
    Thats what i used for this and it seems like it only works properly for windows.
     
  30. Offline

    phaed

    File settingsfile = new File(getDataFolder().getPath() + File.separator + "settings.txt");
     

Share This Page