You are not logged in.

  • Login

[Bukkit-Plugin] PlayerMoveEvent

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.

Nico__2801

User / Kunde

  • "Nico__2801" started this thread

Posts: 63

  • Send private message

1

Sunday, November 16th 2014, 4:30pm

PlayerMoveEvent

Wieso wird dieses Event nicht gecancelt?



Source code

1
2
3
4
5
6
7
	public void onMove(PlayerMoveEvent e) {
		Player p = e.getPlayer();
		if(isAFK) {
			p.sendMessage("§cDein Status ist abwesend! Gib /wd ein, wenn du wieder da bist!");
			e.setCancelled(true);
		}
	}


(Ist nur ein Ausschnitt, bei anderen Events funktioniert es)

BtoBastian

Moderator

  • "BtoBastian" is male

Posts: 3,612

Occupation: Softwareentwickler

  • Send private message

2

Sunday, November 16th 2014, 4:39pm

Das @Override fehlt.
Standard Standart eines Flamingos ist einbeinig.

mcf_

User / Kunde

Posts: 1,363

Thanks: 22

  • Send private message

3

Sunday, November 16th 2014, 4:42pm

Das @Override fehlt.

EPIC FAIL! xD Sorry, das musste sein. Es fehlt @EventHandler



BtoBastian

Moderator

  • "BtoBastian" is male

Posts: 3,612

Occupation: Softwareentwickler

  • Send private message

4

Sunday, November 16th 2014, 4:43pm

Hoppla :D
Standard Standart eines Flamingos ist einbeinig.

Nico__2801

User / Kunde

  • "Nico__2801" started this thread

Posts: 63

  • Send private message

5

Sunday, November 16th 2014, 5:11pm

Danke ihr beiden, hab ich übersehen :D
Immer so Kleinigkeiten ^^


Kann geschlossen werden

BtoBastian

Moderator

  • "BtoBastian" is male

Posts: 3,612

Occupation: Softwareentwickler

  • Send private message

6

Sunday, November 16th 2014, 5:45pm

Standard Standart eines Flamingos ist einbeinig.

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