traitor / Minecraft-Server-Mod

Server administration mod and API for Minecraft beta multiplayer server
220 stars 91 forks source link

/item command bug and suggestion. #245

Closed Wolflink289 closed 13 years ago

Wolflink289 commented 13 years ago

First off, there is a bug when you do "/item 1" without anything else. The exception is the following:

    at ItemArray.setSlot(ItemArray.java:159)
at ItemArray.addItem(ItemArray.java:35)
at Player.giveItem(Player.java:96)
at Player.command(Player.java:393)
at Player.chat(Player.java:117)
at ONetServerHandler.a(ONetServerHandler.java:480)
at OPacket3Chat.a(SourceFile:24)
at ONetworkManager.a(SourceFile:232)
at ONetServerHandler.a(ONetServerHandler.java:56)
at ONetworkListenThread.a(ONetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.h(SourceFile:297)
at net.minecraft.server.MinecraftServer.run(SourceFile:235)
at OThreadServerApplication.run(SourceFile:512)

Second, can you please add a configurable /item restriction for certain ranks. For example, make rank default not allowed to spawn diamond anything but VIP rank can spawn diamond. You could use groups.txt to set the item permissions by adding a new option like so. NAME:COLOR:COMMANDS:INHERITEDGROUPS:ADMIN/UNRESTRICTED:DISALLOWEDSPAWNING

Wolflink289 commented 13 years ago

Yet ANOTHER bug. Me and my friend were just doing "/item fire -1" and "/item 51 -1" a bunch of times.

at ItemArray.setSlot(ItemArray.java:159)
at ItemArray.addItem(ItemArray.java:35)
at Player.giveItem(Player.java:96)
at Player.command(Player.java:393)
at Player.chat(Player.java:117)
at ONetServerHandler.a(ONetServerHandler.java:480)
at OPacket3Chat.a(SourceFile:24)
at ONetworkManager.a(SourceFile:232)
at ONetServerHandler.a(ONetServerHandler.java:56)
at ONetworkListenThread.a(ONetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.h(SourceFile:297)
at net.minecraft.server.MinecraftServer.run(SourceFile:235)
at OThreadServerApplication.run(SourceFile:512)
Wolflink289 commented 13 years ago

Never mind for the suggestion, I just wrote a plugin to do that and avoid the exceptions. Also, one exception (i'm not sure which) happens when you /item yourself an item that you already have unlimited of.

14mRh4X0r commented 13 years ago

This has been fixed in 135, please close? :D