You are not logged in.

  • Login
Bitte besucht unser neues Forum unter https://forum.nitrado.net | Please visit our new Forum at https://forum.nitrado.net

Dear visitor, welcome to Nitrado.net Prepaid Gameserver Community-Support - Archiv. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

IceHero

User / Kunde

  • "IceHero" started this thread

Posts: 16

  • Send private message

1

Tuesday, October 2nd 2018, 7:24pm

Problem beim coden

hey, ich möchte programmieren, dass wenn jmd einen Command eingibt, dass dann sein Item, welches er in der Hand hällt, removet wird. Wie geht das?

Dyroxplays

User / Kunde

Posts: 32

  • Send private message

2

Tuesday, October 2nd 2018, 9:04pm

Command abfragen, Abfragen ob item in der hand != null, p.getInventory().remove(p.getItemInHand()); (kP ob das so richtig ist, freihand geschrieben!)

thunfischbaum

User / Kunde

  • "thunfischbaum" is male

Posts: 254

Location: %JAVA_HOME%

Occupation: Fachinformatiker für Systemintegration

Thanks: 5

  • Send private message

3

Wednesday, October 3rd 2018, 12:23am

Command abfragen, Abfragen ob item in der hand != null, p.getInventory().remove(p.getItemInHand()); (kP ob das so richtig ist, freihand geschrieben!)
Stimmt so ;)

Bitte besucht unser neues Forum unter https://forum.nitrado.net| Please visit our new Forum at https://forum.nitrado.net

Similar threads