Development Assistance Help With Check Points!

Discussion in 'Plugin Help/Development/Requests' started by TheGreenCreeper8, Jan 20, 2015.

Thread Status:
Not open for further replies.
  1. I am currently trying to develop a plugin for my server which includes check-points in parkour. I have got no idea how to code this area of bukkit plugins so any help would be appreciated,
    package me.greencreeper8.CheckPointz;
    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    import org.bukkit.Material;
    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.block.Action;
    import org.bukkit.event.entity.PlayerDeathEvent;
    import org.bukkit.event.player.PlayerInteractEvent;
    import org.bukkit.inventory.ItemStack;
    public class CheckPointz extends JavaPlugin {
        public void onEnable() {
        public void onDisable() {
        public void onInteractEvent(PlayerInteractEvent event){
                if(event.getClickedBlock().setTypeId(new ItemStack(Material.STONE_PLATE)) {
                    Player player = event.getPlayer();
                    Bukkit.getWorld(player.getWorld().getName()).createExplosion(arg0, arg1)(player.getLocation(), 0);
  2. Offline

    timtower Administrator Administrator Moderator

  3. @timtower I keep getting errors with the: if(event.getClickedBlock().setTypeId(new ItemStack(Material.STONE_PLATE)){ line so that would help alot and i also don't know if I would need another class to store the checkpoints
  4. Offline



    Pretty easy, just get the location and serealize it into the config, from there you could deserealzie it and use it whenever you want. For more info try reading the configuration api,
  5. Offline

    timtower Administrator Administrator Moderator

  6. Offline


    @TheGreenCreeper8 You sure you want to change every physical interaction block into a stone pressure plate? You might want to say if (event.getClickedBlock().getTypeId() == Material.STONE_PLATE)
    Also createExplosion will return an error because you are missing arguments.
Thread Status:
Not open for further replies.

Share This Page