[INACTIVE][GEN] OtherX v0.5 - Basic Commands & Features [612]

Discussion in 'Inactive/Unsupported Plugins' started by Zelnehlun, Mar 14, 2011.

  1. Offline

    Zelnehlun

    OtherX - Basic Commands and Features:
    Version: v0.5
    Supports: Permissions [optional]

    [​IMG]

    This plugin provides simple but basic commands for your Minecraft server. Besides the commands it offers a login message with customizable chat colours.
    As this is my first plugin for Minecraft I would really appreciate constructive feedback and criticism.

    Setup: (open)

    1. Put "OtherX.jar" and the OtherX folder in your plugins directory.
    2. Adjust the server name and the command colors in "plugins/OtherX/data.txt".


    Features: (open)

    • /location Displays your X, Y and Z coordinates.
    • /time [day/night] Has two parameters (day/night) to switch between the cycles.
    • /msg [Player] [Message] Sends a private message to another player.
    • /who Prints the names of all players online onthe server.
    • /give [Player] [Item] [Amount] [Damage] Gives another player a certain amount of the specified item. Damage input is optional.
    • /item [Item] [Amount] [Damage] Gives yourself the selected amount of the item. Damage input is optional.
    • /search [id/item] Search and print the name or id.
    • /clearinventory [Player] Clears the inventory of a player. If no parameter is specified, your own inventory will be cleared.
    • /kill [Player] Kills another player. If no paramater is specified ...
    • /heal [Player] Heals another player. If no parameter ...
    • /kick [Player] [Reason] Kicks a play with an optional reason.


    Permissions (open)

    • 'OtherX.location'
    • 'OtherX.time'
    • 'OtherX.msg'
    • 'OtherX.who'
    • 'OtherX.give'
    • 'OtherX.item'
    • 'OtherX.search'
    • 'OtherX.clearinventory'
    • 'OtherX.kill'
    • 'OtherX.heal'
    • 'OtherX.kick'


    Changelog: (open)

    Version 0.5
    • Update to work with the latest Bukkit build.
    Version 0.4
    • Added Permissions support.
    • Bug fixes.
    Version 0.3
    • Added a kick comand.
    • Added the plugin to CraftBukkitUpToDate.
    • Fixed the time command.
    Version 0.2
    • Damage support for give and item command.
    • No manual installation of the "items.txt" is required.
    • Give, item and search command run with ids and words.
    • Changed the name of the package.
    Version 0.1
    • Initial release.
     

    Attached Files:

  2. Offline

    sowel

    i just removed scrapbukkit from one of my servers because i could not work the permissions out.
    i think this will be a good replacement for it =]

    downloading and trying now

    *Edit*

    downloaded and installed with no problem, only thing is I use the Permissions plugin a not the op list (could be doing it wrong but it works for me) and as the admin I can use all commands. however when i tryed the /time day I got the message "you are no an operator". i have not tryed the other commands yet

    is this not compatible with Permissions?
     
  3. Offline

    Zelnehlun

    It is not compatible with Permissions at the moment, I wanted to code a plugin which is not depending on other plugins. If you guys really want Permission support I will have to learn how to do that ;) I tested the /time day command on our server today with some guys and it worked for us. The operator commands require your name in the ops.txt obviously.
     
  4. Offline

    sowel

    strange thing is i had this working for a while but now i get the error
    In the game it just says "An internal error occurred while attempting to preform this command"

    the /time day works for me but i cant use /item
     
  5. Offline

    Zelnehlun

    I will have to take a look at this later, when I am back home. Could you post the exact command you tried to execute?
    *EDIT*
    Changed some code and tested the give and item commands works fine for me. Make sure you specify the right parameters. Execute any command with no parameters then you will get a message which displays all possible parameters. Make sure to use /give if you want to give another player some items. Use /item if you want to give yourself some items.
     
  6. Offline

    Night Mare

    I have the same problem as sowel. I hope it's not me who is doing something wrong.
     
  7. Offline

    kalner123456

    Can you add this mod to CraftbukkitUpToDate please.

    It would help alot with the updating
     
  8. Offline

    Zelnehlun

    You have to add your name to the "ops.txt" otherwise you will not be able to use the Operator commands. I did not implement Permissions support yet because I do not know if you would like this.

    @kalner123456 What means CraftbukkitUpToDate, I tested the plugins on the latest Craft Bukkit build and they work.
     
  9. Offline

    kalner123456

  10. Offline

    DarthDerp

    noob question: How do you change the colors? I did it once and can't do it again.
     
  11. Offline

    Zelnehlun

    Goto your plugins folder and search the "OtherX" directory. Open it and search for the "data.txt", I recommend to open it with Notepad++ or similar programs. You can change the Standard color for normal colored text and the special color for important words in messages.
    @kalner13456 I will add this to CraftBukkitUpToDate
     
  12. Offline

    Plasmius

    Code:
    2011-03-19 13:57:33 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'time' in plugin OtherX v0.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at de.tikkub.zelnehlun.OtherX.OtherX.onCommand(OtherX.java:93)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Why does it do this with only time. everything else is working fine
     
  13. Offline

    Zelnehlun

    Time should work, the commands are /time day or /time night.
    *EDIT*
    I just found out what went wrong. The name of the world which you are using for the server has to be "world". Otherwise the /time command will not work. I'll try to find a way to change that.
     
  14. Offline

    Plasmius

    hm it doesnt so maybe it is just bugged for me
     
  15. Offline

    misachinois

    Hi, for the next release you should make a motd.txt so we can change de motd ;)
     
  16. Offline

    Zelnehlun

    Good idea will add this in the next version!
     
  17. Offline

    mxms

    Permissions support would be great. I want to give admins (including myself) the ability to use certain commands without making them (or myself) an OP. This seems to be what I'm looking for minus the Permissions.
     
  18. Offline

    cda1987


    /msg doesn't include spaces, and /give has giving 1 of stone to cda1987 twice. good plug-in though i like it. like a few others said adding permissions to it would make it so much more flexible.
     
  19. Offline

    Zelnehlun

    Thanks for your feedback! I will work on the /msg bug. The thing with the /give command, it should be used to give other players stuff that's why the sender (you) and the receptor receive a message, I will change it so if you /give yourself stuff you won't receive 2 messages.
     
  20. Offline

    cda1987

    Alright, my bad and thanks zelnehlun!

    Suggestion : Additional command for /setspawn :D

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

    Zelnehlun

    I have another lightweight Spawn plugin here

    Added Permissions support. Need some feedback if there are any problems ;)

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

    Zelnehlun

    I could include my teleport plugin into this one, but I don't know if people want this :D
     
  23. Offline

    DJTza

    Problem is, mods still can't use any of the OtherX commands :/ Any ideas?

    Thanks
    DJ
     
  24. Offline

    Zelnehlun

    Are you running the newest version of Permissions and did you reload or restart the server? I'll test it on my private server again.
    *EDIT*
    Worked fine for me, are users able to use the OtherX commands?
     
  25. Offline

    Swbf12

    When I go into the otherX file there is only an items text thing?

    [creeper]
    ANGRY!!

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

    Zelnehlun

    Restart or reload the server then another text file will be created.
     
  27. Offline

    White Sheep

    Nice lightweight plugin!!

    Recommends:
    - Changeable login message
    - Turn on/off login message
    - Teleport command
    - Item command usable like this "/item dirt" give me 1 dirt (its now: "/item dirt 1")
     
  28. Offline

    Zelnehlun

    Thanks, I am going to work on this one. I think I will put my Teleport plugin into this one.
     
  29. Offline

    MCBeast

    I try to give myself items and it says "An internal error occured while attempting to perform this command" I tried /give <My name> <Item ID> <Amount> with /give and /item it doesn't work and keeps giving this error! Please help.
     
  30. Offline

    White Sheep

    If i give myself a item with the command /item or /give and that item doesnt exists, i get this error: "java.lang.NullPointerException" and my client crashsm, running on bukkit 670.
     

Share This Page