Advertisement
Guest User

Untitled

a guest
Sep 10th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. @EventHandler
  2. public void onPlayerVote(VotifierEvent event) {
  3. Vote v = event.getVote();
  4. Bukkit.getServer().broadcastMessage("§b× §6Der Spieler §a" + v.getUsername() + " §6hat gevotet und 100 Shrooms erhalten! Vote auch du mit: §a/vote");
  5.  
  6. Player p = Bukkit.getServer().getPlayer(v.getUsername());
  7. plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), "shrooms add " + p.getName() + " 50");
  8. plugin.saveConfig();
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement