moneyboybro
Last Activity:
Aug 18, 2015
Joined:
Mar 3, 2013
Messages:
57
Likes Received:
0
Trophy Points:
0
Gender:
Male
Location:
Developer Island

Share This Page

moneyboybro

Member, Male, from Developer Island

I <3 Cookies! Oct 20, 2013

moneyboybro was last seen:
Aug 18, 2015
    1. moneyboybro
      moneyboybro
      I <3 Cookies!
  • Loading...
  • Loading...
  • About

    Gender:
    Male
    Location:
    Developer Island
    Man, Sometimes I Feel Like I Can Code Anything, Next Thing I Know I Can't Even Code Give Me Fly xD

    Interact

    Signature

    Developers:
    95% frustration & hair pulling.
    5% hey look at what I made, kinda cool?
    Code:java
    1. package me.MoneyBoyBro.FirstPlugin;
    2.  
    3. import org.bukkit.ChatColor;
    4. import org.bukkit.command.Command;
    5. import org.bukkit.command.CommandSender;
    6. import org.bukkit.entity.Player;
    7. import org.bukkit.plugin.java.JavaPlugin;
    8.  
    9. public class Main extends JavaPlugin {
    10. public void onEnable() {
    11. System.out.println("First Plugin Enabled!");
    12. }
    13.  
    14.  
    15. public boolean onCommand(CommandSender sender, Command cmd, String commandLabal, String[] args){
    16. if(commandLabal.equalsIgnoreCase("test")) {
    17. Player player = (Player) sender;
    18. player.sendMessage(ChatColor.DARK_AQUA + "§3[§bInstaHeal§3]§6 You Have Been Feed & Healed!");
    19. player.setHealth(20);
    20. player.setHunger(20);
    21.  
    22. }
    23.  
    24. return false;
    25.  
    26. }
    27. }
    28.