[ADMN/GEN]AdminCmd 7.3.5-time, give, tp, repair,kill, warp,weather,afk,OpenInv [1.5.1]

Discussion in 'Archived: Plugin Releases' started by Dark_Balor, Apr 1, 2011.

  1. Offline

    Dark_Balor

    AdminCmd - Fork of PlgEssentials:
    [​IMG]
    [​IMG] Website : www.admincmd.com
    [​IMG] Wiki : http://wiki.admincmd.com
    [​IMG] BugTracker : http://bug.admincmd.com
    [​IMG] Downloads : HERE
    [​IMG] GitHub : http://github.com/Belphemur/AdminCmd
    Description

    AdminCMD is a powerful plug-in that brings you commands that can give you total management over your server. Featuring the most widely used commands in Bukkit server management such as: inventory management, banishment of bad players, limitation to teleporting, setting spawn and home way points, and much, much more! Blockface approved and rated as one of the best plug-in by server owners.
    Unleash the power of Bukkit!

    Features
    For the blog : www.admincmd.com
     
  2. Offline

    wnccz

    Thanks. That works...
     
  3. Offline

    Dark_Balor

    Changed my mind :) and recoded some part to improve the Permission Check and allow to implement that functionality :D

    @Xaqa @_-DarkMinecrafter-_ @Sorken @nemesis91 @christianlej
    Version 5.6.11
    [OPTIMIZATION] Better threads using for the commands
    [FEATURE] In case of you are using the Offical Bukkit Permission System with a Bridge for Yeti's Perm, you can force my plugin to use the Offical Bukkit Permission System instead of the Bridge.
    [BUG FIX] Afk title that is repeated in the pseudo
    [BUG FIX] Some other minor bug fix done.
     
  4. Offline

    Woods

    Hey balor,

    Are you sure you can handle this plug-in to update quickly enough? As youre making it bigger and bigger and you could see it as several plug-ins. Because do understand that if you slow down because of the many more features people will get angry as this a really really essential plug-in. Otherwise you might think about setting up a team like voxel or skstuff. Maybe think about contacting developers of for example spyer as you now have the /invisible command not a lot of people will use spyer anymore. Just a nice suggestion in the good will of not wanting clients to get angry.

    Greets,
     
  5. Offline

    Dark_Balor

    @Woods : Yep for now I can handle the support and the code. For the testing, I just do the minimum, but some other member (that I thanks so much) testing it on there production server and report any bug :)

    Of course if any developer want to help me, I will accept, since the version 5.0 the code is more readable and easier to understand and to add new functionality.

    About Spyer and other plugin that are providing the same command as mine, I just provide some default and easy command, with not a lot of feature. Example Spyer have limit time inv, spyFun for PvP etc ... a lot of cool feature that I'll not implement.

    My plugin is more as a command base plugin, it's why I made it "overridable" by other plugin :)
     
  6. Offline

    christianlej

    I used Spyer plugin and made my server lagg and this plugin don`t work so... made me hangry and happy when i saw Balor implement /spy in this plugin and see that worked :O

    Thanks Balor, you doing very good :D

    Report Bug!!

    14:16:27 [GRAVE] [AdminCmd] The command bal_god throw an Exception please report the log to this thread : http://forums.bukkit.org/threads/admincmd.10770
    14:16:27 [GRAVE] java.lang.Exception: test
    14:16:27 [GRAVE] at be.Balor.Manager.Commands.Player.God.execute(God.java:70)
    14:16:27 [GRAVE] at be.Balor.Manager.CommandManager$ExecutorThread.run(CommandManager.java:182)

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

    Dark_Balor

    Sry ... re-download --'' I uploaded my test version instead of the final ...
     
  8. Offline

    christianlej

    Report Bug!!

    2011-08-02 14:22:38 [SEVERE] java.lang.NullPointerException
    2011-08-02 14:22:38 [SEVERE] at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:796)
    2011-08-02 14:22:38 [SEVERE] at belgium.Balor.Workers.AFKWorker$KickChecker.run(AFKWorker.java:175)
    2011-08-02 14:22:38 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-08-02 14:22:38 [SEVERE] at java.lang.Thread.run(Thread.java:679)

    THe player told me that is using toomanyitem, but i don`t know if it`s admincmd bug. And 1 thing Balor, could you make the way that the plugin stop the other mod named toomanyitem? i want that OP`s just use AdminCmd commands :D
     
  9. Offline

    Soulblitz

    Is this compatible with WorldEdit, mcMMO, Stargate and Multiverse? I've spent a while setting up those mods on my server and I wouldn't want to install this and have them all break :)
     
  10. Offline

    Dumle

    ty that helped :D btw is the fly mod bugged somehow or is it like that with purpose?
     
  11. Offline

    christianlej

    Dark_Balor, sorry for annoy you with a lot things... xD, but the normal players can`t set any sign at the moment ...

    Could you fix this bug? :(:'(
     
  12. Offline

    Dark_Balor

    It'll not break any other plugin. If there is a conflict with a command, the other plugin have the priority
    @Dumle : If you are talking about the kick, look on the server.properties right after your server executable, change allow-flight to allow-flight=true.
    @christianlej : For the Sign it's a problem with the Vanilla Minecraft, not my plugin :)
    For the other bug :

    Version 5.6.12
    [BUG FIX] With AFK, no more throwing NPE when there is no AFK.
    [FEATURE] Message Of The Day, can be changed in the locale File, and disabled in the configuration file.
    [FEATURE] Command /motd to set the motd without going into the locale file: %player = new connected player, %nb = (number of player connected - invisibles players)
    [BUG FIX] 5.6.11 have a debug message, corrected.

    Server Commands :
     
  13. Offline

    christianlej

    So i need to restart the server?, just it? for the vanilla problem
     
  14. Offline

    Dark_Balor

    I think so, it's some thing about the chunck loading.
     
  15. @Dark_Balor
    Are mutes persistent across disconnects, reloads and restarts?

    Id like the ability to link a server /whatever-command to launching of a shell script. .bat or .cmd for windows and bash script for linux.

    This way i can have premade scripts dont my staff can use to call up various functions on the machine, like cleaning out temp files, purging old backups, report back ramdisk/memory usage... well anything i can script really.

    Actual implementation would probably be fairly easy. You would just have to 1. figure out what OS you are on and 2. depending on what OS somehow tell it to run the script user has pointed to.
     
  16. Offline

    Dark_Balor

    across disconnects as every other "Power" and "Settings" like mob limit, fly, god, etc ...

    Only ban for now is persistent across reload/restart.
    List of all the "Types" : FLY, VULCAN, GOD, THOR, BANNED, FIREBALL, SPYMSG, FREEZED, MUTED, MOB_LIMIT, NO_PICKUP, WEATHER_FREEZED;

    Only BANNED is persistent across reload/restard.
     
  17. I see, but couldnt you have a mute-players.txt file. Upon connect you check if name matches any on list and then reapplies it. That way it would persist accross restarts aswell.

    Also, did you see the suggestion above, i think i edited it as you replied.
     
  18. Offline

    Dark_Balor

    @Sorken : for the persistence I can do that easily :)

    But for the script execution ... you know that gonna be a real break in the security ? I mean yeah I can do a folder where you put the script, and execute it. But if you any error in the script, or someone you don't want modifies it I can't be responsible of it.
     
  19. Instead of a script folder, id like to map a command directly to a script with full path. Is it possibly to meddle with stuff outside bukkit folder? Anyone who has access to meddle with my scripts probably can do alot worse then meddle with my scripts.. like format the drives and such :)

    To limit the risks i propose the following:
    1. You can only link a command to a script in a config file
    2. Not be able to pass any parameters from the game to it.
    3. It would also require a new permission node to call scripts.

    like:
    mem - /etc/init.d/minecraft mem

    all you can do in game is then "/mem" you wont be able to do "/mem parameter"

    This way, only what the admin with login access defines is accessable. The scripts are run as is with no further way of messing with them or exploiting them. Its not fool proof, but any plugin or op access can cause game breaking security issues. As always its up to the admin not to be an idiot :)

    Also, the plugin is getting rather large now. Its mostly good stuff I would use. But the problem with theese "packs" is they may have stuff you dont want to use. Perhaps make it more modular. In config have:

    enable-fly: true
    enable-tp: true
    enable-item: false
    enable-time: true
    enable-powers: false
    enable-other: false

    That way the portions of AdminCmd you want to use are enabled, while those you dont want is not even loaded. Im not sure how much resources are used just for loading/enabling the stuff you dont want to use. Perhaps its extremely minimal and not worth the work.
     
  20. Offline

    Dark_Balor

    @Sorken : I can't do exactly what you ask.
    But I can do something like this :
    create a new command /exec that have the node admincmd.server.exec.X
    I let you configure a yml file like this :
    Code:
    commands:
        mem:
            exec: /etc/init.d/minecraft
            args: mem
        blah:
            exec: foo/bar
            args: blah
    
    Before launching the command you must have the right node : for mem : admincmd.server.exec.mem etc ...

    About disabling functions, it's not needed, because the register of my commands don't take to much resource, and because I'm using an hashmap not a lot of time. But I can add a disableFunction list in the config file
    Code:
    disabledCommands:
        - bal_god
        - bal_item
    
     
  21. That looks good, just as long as the person ingame running the script cant send further arguments to it. Would it be hard to make indivial permission nodes for each script? one node for running scrips otherwise would probably work.

    Probably not needed then. Was only a suggestion.
     
  22. Offline

    Dark_Balor

    Yup of course, no argument other than the one configured in the file will be used.

    For the disabling, I'll implement it maybe later when Spout (BukkitContrib) will add a unregister function to unregister BukkitCommand. Because for now, if I disabling one of my command and a user call it he'll see the usage of the command instead of Unknown command.
     
  23. Sorry for giving you so much trouble tho.
     
  24. Offline

    christianlej

    Dark_Balor, could you set the way that when you trying to enter on a full server can go in the OP`s and Admins or not count to login players and can log others that isn`t OP`s?.
    I really need this... Thanks.
     
  25. Offline

    Th3Controller

    Hey Dark_Balor our server wants to sponsor you is it fine?
     
  26. Offline

    Dark_Balor

    @christianlej : Sry I don't understand Oo ( Just to know, are you French ? if yes explain it in French ^^)

    @Th3Controller : It's depend on the meaning of Sponsoring :)
     
  27. Is it possible to use \n (newline) in the MOTD?
     
  28. I think he means something along the lines of, if server is full and you try connecting, you bypass server being full and are let in anyway using a permission node given to staff or VIP.
     
  29. Offline

    Dark_Balor

    @Lathanael : nop, but in next version yes with /n (can't make the normal \n works ...) --''

    @Sorken : I see what I can do
     
  30. Suggestion:
    As you have added a MotD config how about a simple news config?

    And thx for the update to use newlines soon :)
     
  31. Offline

    christianlej

    Exactly, Thanks Sorken :D, and I`m spanish... somethimes is difficult for me to tell something that i can`t even explain...

    Dark_Balor could you tell me what this error mean?

    2011-08-02 18:46:07 [SEVERE] Unexpected exception
    java.lang.OutOfMemoryError: Java heap space
    at java.util.HashMap.resize(HashMap.java:479)
    at java.util.HashMap.addEntry(HashMap.java:772)
    at java.util.HashMap.put(HashMap.java:402)
    at java.util.HashSet.add(HashSet.java:217)
    at net.minecraft.server.Explosion.a(Explosion.java:81)
    at net.minecraft.server.World.createExplosion(World.java:1466)
    at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:145)
    at net.minecraft.server.EntityFireball.m_(EntityFireball.java:168)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-02 18:46:40 [INFO] Read timed out
    2011-08-02 18:47:01 [INFO] Read timed out
    2011-08-02 18:47:26 [INFO] Read timed out
    2011-08-02 18:47:28 [INFO] Read timed out
    2011-08-02 18:48:22 [INFO] Read timed out
    2011-08-02 18:48:31 [INFO] Read timed out
    2011-08-02 18:48:41 [INFO] Read timed out

    :mad:

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

Share This Page