Run the troll on the player.
Commands
- /troll execute <player> <type> - Execute a troll on a player
- /troll reload - Reloads the plugin
Permissions
- troll.command.execute - Allows use of the /troll execute command
- troll.command.reload - Allows use of the /troll reload command
✔ Developer API Support
- TrollExecuteEvent - Called when a troll effect is executed on a player
✔ How to add a custom troll?
import net.troll.trolls.Troll;
import org.bukkit.entity.Player;
import org.bukkit.command.CommandSender;
public class Test implements Troll {
@Override
public String getName() {
return "test";
}
@Override
public void execute(Player target, CommandSender sender) {
target.sendMessage("Test")
}
}
public void onEnable() {
TrollRegistry.registerTroll(new Test());
}
config.yml
blind:
time: 25
message: "&cYou are now blind!"
drunk:
time: 25
message: "&eVodka vodka!!!"
dropitem:
message: '&cThe player doesn''t have anything in his hand!'
kaboom:
title: '&c&lKABOOM!'
subtitle: '&e&lBy %player%'
mlg:
start: '&bMLG TIME!!!'
success: '&aSuccess!'
fail: '&cFailed!'
poison:
time: 25
message: "&eYou have been poisoned!"
slow:
time: 25
message: "&eYou have been slowed down!"
tnt:
time: 3
messages.yml
messages:
prefix: "&8[&aUltimateTroll&8]&r"
no-permission: '%prefix% &cYou don''t have permission to use this command!'
player-only: "%prefix% &cYou can't use commands from console!"
player-not-found: '%prefix% &cPlayer is not online!'
help-header: "&e----- UltimateTroll Commands -----"
help-execute: "%prefix% &f/%cmd% execute <player> <type> &7- Execute a troll on a player"
help-reload: "%prefix% &f/%cmd% reload &7- Reloads the plugin"
unknown_troll: "%prefix% &cUnknown troll type!"
troll_applied: "%prefix% &aApplied %troll% troll to %player%!"
troll_requires_protocollib: "%prefix% &cThis troll can't be executed because ProtocolLib is not installed!"
reload-success: '%prefix% &aSuccessfully reloaded!'
reload-fail: '%prefix% &cA serious error occurred during reloading'
For support, please use only resource discussion
Terms of Service
By using this plugin, you agree to the following terms, which may be updated by the author at any time.
- All payments are final and non-refundable.
- Redistribution or resale of this plugin is prohibited.
- You are not permitted to modify, decompile, or extract any part of the plugin's source code.
- Support is provided exclusively to legitimate customers. We cannot offer support for plugins obtained through unauthorized or illegal means.