|
How would I make it if I wanted to click an item, and for example it would say "enter item ID to spawn" or "enter username to mute" or something like that, i've tried different kind of things but all of them got errors when was tested
thanks for the help
the revision: 718
what i've tried: I added tempoary att thing or whatever it is called, and basically just added the kick command from commands section
like, I really want my admins to have a rotten potato instead of typing commands all the time, get what I mean?
You should edit your main post and include what revision you're using and what you've already tried.
updated
Something we had on prodigy-x went like this:
Code:player.setInputEvent(new IntegerInputEvent("Enter the amount of money you would like to withdraw.", new Runnable() { @Override public void run() { int value = (int) player.getInputEvent().getValue(); if (!player.getMoneyPouch().remove(value, true)) player.sendMessage("Failed to remove the coins from your money pouch."); } }));Code:public void setInputEvent(InputEvent<?> inputEvent) { this.inputEvent = inputEvent; switch (inputEvent.getType()) { case INTEGER: getPackets().sendInputIntegerScript(inputEvent.getTitle()); break; case NAME: getPackets().sendInputNameScript(inputEvent.getTitle()); break; case STRING: getPackets().sendInputLongTextScript(inputEvent.getTitle()); break; } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |