/[projects]/miscJava/bukkit-minecraft-plugins/CreativeWorld/src/main/java/dk/thoerup/bukkit/creativeworld/WorldChanged.java |
Parent Directory | Revision Log | Patch
revision 1681 by torben, Wed Jan 25 22:03:19 2012 UTC | revision 1682 by torben, Thu Jan 26 19:01:52 2012 UTC | |
---|---|---|
# | Line 21 public class WorldChanged implements Lis | Line 21 public class WorldChanged implements Lis |
21 | this.plugin = plugin; | this.plugin = plugin; |
22 | } | } |
23 | ||
24 | ||
25 | @EventHandler | |
26 | public void onPlayerExpChange(PlayerExpChangeEvent event) { | |
27 | if (event.getPlayer().getWorld().getName().equalsIgnoreCase("creative")) { | |
28 | event.setAmount(0); //users don't acummulate xp points in creative mode | |
29 | } | |
30 | } | |
31 | ||
32 | @EventHandler | @EventHandler |
33 | public void onPlayerChangedWorld(PlayerChangedWorldEvent event) { | public void onPlayerChangedWorld(PlayerChangedWorldEvent event) { |
34 |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |