Making Plugins.

Discussion in 'Plugin Development' started by lucabunny77, Jun 9, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    lucabunny77

    Ok so I've made 2 plugins before like a hello plugin and event handle I just did what this guy was doing on a vid but I'm gonna watch thebcbroz plugins tuts there's about 82 eps would I need to watch em all
    And after that there's like 6 eps of minigames plugins tut would I need to watch all of those vids to learn how to make plugins?
     
  2. Offline

    CheifKeef

    I just watched his very first video and instead of doing the sendMessage I wondered off and tried to make a teleportation plugin so basically watch a couple videos and you will get used to it
     
  3. Offline

    pcgamers123


    I think that the best way to learn how to code a plugin, is to just mess around with codes. Try out everything. Making Events, Making meanless commands.
    Code:java
    1. @EventHandler
    2. public void onPlayerInteract(PlayerInteractEvent e){
    3. Player player = e.getPlayer();
    4.  
    5. if(e.getAction() == Action.RIGHT_CLICK_BLOCK && e.getClickedBlock().getType() == Material.CACTUS){
    6. player.addPotionEffect(PotionEffectType.CONFUSION.createEffect(1200, 4));
    7. }
    8. }

    That was a OnPlayerInteractEvent, and it says if a player Right Clicks a Cactus, it will give the player who cliked the Cactus the PotionEffect Nausea.
    Mess around with player stuff. And so on
     
  4. Offline

    Garris0n

    es359 likes this.
Thread Status:
Not open for further replies.

Share This Page