SMALL plugins

Status
This thread has been locked.

Larjd

Supreme
Feedback score
11
Posts
429
Reactions
199
Resources
0
Hey, I'm learning Java and I would like to get some practice. Leave your small plugin ideas below and I will try to complete them.

Note. All plugins made will go to my GitHub page so I can get feedback from more experienced developers.
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

hoodoo_

Feedback score
0
Posts
85
Reactions
21
Resources
0
make a plugin that adds bleach and you can drink it (not saying to you, i'm saying that a player could drink it)

could be a more fun alternative to /suicide in essentials?
 

EliteGamer687

Feedback score
5
Posts
283
Reactions
50
Resources
8
make a plugin that adds bleach and you can drink it (not saying to you, i'm saying that a player could drink it)

could be a more fun alternative to /suicide in essentials?
I would 100% buy this!!! So a potion called bleach once drunk kills you!! I want!!
 

Larjd

Supreme
Feedback score
11
Posts
429
Reactions
199
Resources
0
make a plugin that adds bleach and you can drink it (not saying to you, i'm saying that a player could drink it)

could be a more fun alternative to /suicide in essentials?
https://www.dropbox.com/s/k4i6yueuzxdrx2v/Bleach.jar?dl=1

Code:
public class Main extends JavaPlugin implements Listener {

    public void onEnable() {
        Bukkit.getServer().getPluginManager().registerEvents(this, this);
    }
 
    public ItemStack bleach = new ItemStack(Material.POTION, 1); {
        ItemMeta bleachIM = bleach.getItemMeta();
        bleachIM.setDisplayName(ChatColor.BLUE + "Bleach");
        bleach.setItemMeta(bleachIM);
    }
 
    public boolean onCommand(CommandSender sender, Command cmd, String alias, String[] args) {
        if (cmd.getName().equalsIgnoreCase("bleach")) {
            if (sender.hasPermission("bleach.use")) {
                if (args.length == 0) {
                    sender.sendMessage(ChatColor.RED + "Usage: /bleach give {player}");
                } else if (args.length == 1) {
                    sender.sendMessage(ChatColor.RED + "Usage: /bleach give {player}");
                } else if (args.length == 2) {
                    if (args[0].equalsIgnoreCase("give")) {
                        Player target = Bukkit.getPlayer(args[1]);
                        if (target != null) {
                            if (target.getInventory().firstEmpty() == -1) {
                                target.sendMessage(ChatColor.RED + "Your inventory is full, item dropped on the ground.");
                                target.getLocation().getWorld().dropItemNaturally(target.getLocation(), bleach);
                                sender.sendMessage(ChatColor.GREEN + "Given bleach to " + target.getName());
                            } else {
                                target.getInventory().addItem(bleach);
                                sender.sendMessage(ChatColor.GREEN + "Given bleach to " + target.getName());
                            }
                        } else {
                            sender.sendMessage(ChatColor.RED + args[1] + " is not online");
                        }
                    } else {
                        sender.sendMessage(ChatColor.RED + "Usage: /bleach give {player}");
                    }
                } else {
                    sender.sendMessage(ChatColor.RED + "Usage: /bleach give {player}");
                }
            } else {
                sender.sendMessage(SpigotConfig.unknownCommandMessage);
            }
        }
        return true;
    }
 
    @EventHandler
    public void onItemConsume(PlayerItemConsumeEvent event) {
        Player player = event.getPlayer();
        ItemStack item = event.getItem();
     
        if(item.equals(bleach)) {
            player.setItemInHand(new ItemStack(Material.GLASS_BOTTLE, 1));
            player.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 200, 5));
            player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 200, 1));
            Bukkit.getServer().getScheduler().runTaskLater(this, new Runnable() {
                @SuppressWarnings("deprecation")
                public void run() {
                    if(player.getGameMode().equals(GameMode.CREATIVE)) {
                        player.setGameMode(GameMode.SURVIVAL);
                    }
                    player.damage(999);
                }
            }, 80L);
        }
    }
 
}
 
Last edited:

Waroth

Feedback score
0
Posts
3
Reactions
0
Resources
0
I am creating a new hardcore server and I need a deathban plugin. How would I like it?

1. Players get banned progressively. Example: first time banned 20 minutes, second one 1 hour, third time 3h, fourth 8h, 24h, 72h... then reset from the beginning once the max time of deathban is reached and completed. I want to be able to set up different times of the deathban progression.
2. A command for players to be revived different from /pardon. It must be a custom one. Something like: /deathban unban <player>
3. A way of checking out deathbans stats of players: status (deathbaned/alive), how much time is going to be their next deathban if they die.
4. Not any items duplication glitch
5. Not missing any correct deathban time
6. Chance of enable/disable lives system used to revive yourself or other players.
7. Version 1.12.0 of Minecraft

Thank you in advance!
 

hoodoo_

Feedback score
0
Posts
85
Reactions
21
Resources
0
https://www.dropbox.com/s/k4i6yueuzxdrx2v/Bleach.jar?dl=1

Code:
public class Main extends JavaPlugin implements Listener {

    public void onEnable() {
        Bukkit.getServer().getPluginManager().registerEvents(this, this);
    }

    public ItemStack bleach = new ItemStack(Material.POTION, 1); {
        ItemMeta bleachIM = bleach.getItemMeta();
        bleachIM.setDisplayName(ChatColor.BLUE + "Bleach");
        bleach.setItemMeta(bleachIM);
    }

    public boolean onCommand(CommandSender sender, Command cmd, String alias, String[] args) {
        if (cmd.getName().equalsIgnoreCase("bleach")) {
            if (sender.hasPermission("bleach.use")) {
                if (args.length == 0) {
                    sender.sendMessage(ChatColor.RED + "Usage: /bleach give {player}");
                } else if (args.length == 1) {
                    sender.sendMessage(ChatColor.RED + "Usage: /bleach give {player}");
                } else if (args.length == 2) {
                    if (args[0].equalsIgnoreCase("give")) {
                        Player target = Bukkit.getPlayer(args[1]);
                        if (target != null) {
                            if (target.getInventory().firstEmpty() == -1) {
                                target.sendMessage(ChatColor.RED + "Your inventory is full, item dropped on the ground.");
                                target.getLocation().getWorld().dropItemNaturally(target.getLocation(), bleach);
                                sender.sendMessage(ChatColor.GREEN + "Given bleach to " + target.getName());
                            } else {
                                target.getInventory().addItem(bleach);
                                sender.sendMessage(ChatColor.GREEN + "Given bleach to " + target.getName());
                            }
                        } else {
                            sender.sendMessage(ChatColor.RED + args[1] + " is not online");
                        }
                    } else {
                        sender.sendMessage(ChatColor.RED + "Usage: /bleach give {player}");
                    }
                } else {
                    sender.sendMessage(ChatColor.RED + "Usage: /bleach give {player}");
                }
            } else {
                sender.sendMessage(SpigotConfig.unknownCommandMessage);
            }
        }
        return true;
    }

    @EventHandler
    public void onItemConsume(PlayerItemConsumeEvent event) {
        Player player = event.getPlayer();
        ItemStack item = event.getItem();
    
        if(item.equals(bleach)) {
            player.setItemInHand(new ItemStack(Material.GLASS_BOTTLE, 1));
            player.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 200, 5));
            player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 200, 1));
            Bukkit.getServer().getScheduler().runTaskLater(this, new Runnable() {
                @SuppressWarnings("deprecation")
                public void run() {
                    if(player.getGameMode().equals(GameMode.CREATIVE)) {
                        player.setGameMode(GameMode.SURVIVAL);
                    }
                    player.damage(999);
                }
            }, 80L);
        }
    }

}
sell this on spigot
best plugin available
 

Vyal

Discord: Vyal#5909
Supreme
Feedback score
7
Posts
48
Reactions
9
Resources
0
A potion that removes debuffs, like say you get poison , slowness or something you can drink this potion to get rid of those debuffs
 
Last edited:

Larjd

Supreme
Feedback score
11
Posts
429
Reactions
199
Resources
0

ImAnAlpha

Feedback score
0
Posts
1
Reactions
0
Resources
0
Hello,
I want a scoreboard that tells me this
&c&lSurvival
&fDays: &7 {days}
&fHours: &7 {hours}
&fMinutes: &7{minutes} (When 60 minutes reached it will reset to 0 and Hours wil get an 1)

&fRank: &7 {rank} (PEX (IF POSSIBLE)
&fCoins: &7 {coins}(VAULT)

I hope you understand :p
 

Larjd

Supreme
Feedback score
11
Posts
429
Reactions
199
Resources
0
Hello,
I want a scoreboard that tells me this
&c&lSurvival
&fDays: &7 {days}
&fHours: &7 {hours}
&fMinutes: &7{minutes} (When 60 minutes reached it will reset to 0 and Hours wil get an 1)

&fRank: &7 {rank} (PEX (IF POSSIBLE)
&fCoins: &7 {coins}(VAULT)

I hope you understand :p
Will take me a little while, as I haven't played around with scoreboards yet.[DOUBLEPOST=1509754033][/DOUBLEPOST]
Plugin Name: BuildMode
Node: /BuildMode
Description: Plugin basically give you a worldedit wand, arrow, gunpowder. So when you do /BuildMode these go in inventory.
OplmA9b.png


Also can you make it where when you go in build mode you can still put blocks in your inventory and you can break/place blocks as well and I would like it to be 1.7 x .18 compatible. or just 1.7.

[DL removed per request]
 
Last edited:
Status
This thread has been locked.
Top