gift/massgift command doesn't work

Issue #954 closed
Oscuridad created an issue

Description: Both :gift and :massgift commands do not work properly.

Long Description: I was testing commands and I crossed upon :gift and :massgift, correct me if I'm wrong but this would give either a player or the whole server either an item or a gift with said item on it, however this doesn't works.

When trying to use either :gift <player> ItemID or :massgift ItemID (for example, :gift Oscuridad 755021 (which is the ItemID of one of my items at item_base) it shows up "Only positive numbers" also note this error doesn't shows up all the times but even if it doesn't the command will not work, additionally this shows up on the emulator console:

[?[34mPACKET?[0m][?[35mSERVER?[0m] => [1717] -> [0][0][0][10][6]?[0][0][0][1][0][0][0][0]
java.lang.NullPointerException
        at com.eu.habbo.habbohotel.items.ItemManager.createGift(ItemManager.java:877)
        at com.eu.habbo.habbohotel.commands.GiftCommand.handle(GiftCommand.java:77)
        at com.eu.habbo.habbohotel.commands.CommandHandler.handleCommand(CommandHandler.java:211)
        at com.eu.habbo.habbohotel.rooms.Room.talk(Room.java:3499)
        at com.eu.habbo.habbohotel.rooms.Room.talk(Room.java:3420)
        at com.eu.habbo.messages.incoming.rooms.users.RoomUserTalkEvent.handle(RoomUserTalkEvent.java:33)
        at com.eu.habbo.messages.PacketManager.handlePacket(PacketManager.java:150)
        at com.eu.habbo.threading.runnables.ChannelReadHandler.run(ChannelReadHandler.java:27)
        at com.eu.habbo.threading.ThreadPooling$1.run(ThreadPooling.java:52)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
        at java.lang.Thread.run(Unknown Source)
[?[34mPACKET?[0m][?[35mSERVER?[0m] => [2704] -> [0][0][0]-[10]?[0][0][0][1][0]?Only positive numbers[0][0][0][0][0][0][0][1][0][0][0][0][0][0][0]?

Media: Don't think is needed.

Comments (2)

  1. Log in to comment