Bukkit Coding ~ Episode 30: Warn Plugin
ฝัง
- เผยแพร่เมื่อ 5 ก.พ. 2025
- I am reviving the Bukkit Plugin Coding Tutorials series by bringing you a tutorial on making a Warn plugin. Please subscribe and comment with any requests you have!
Code:
Warn.java ~ pastebin.com/hh...
plugin.yml ~ pastebin.com/tc...
Do a plugin tutorial on anticheat pl0x
Hey pogo, for your teleport video, can you show how to make a /listwarp? I've been struggling on it for a while and id enjoy it if you could show me!
PLEASE! make a video tutorial on how to make a cooldown, like a lobby, and when cooldown = 0, player get telepoted to some location
He already made one, just go check his awesome channel!
Hey @Pogostick29dev are you able to make a ban kick and warn plugin in one plugin and that you can specify how long to ban the player for
help i get this A internal error occurred while attempting to perform this command HELP!
can u make a anticheat tutorial?
The only setBanned i get is offline players i dont see one for online players when i scroll through the options
What do you do if you don't want the config file to be config.yml?
How would I make it generate something else?
I really don't think Pogo gives a shit about criticism on this video, he now owns his own business as well as he uploaded this 3 years ago...
Wheres the permission?
YAY
I got this error for the code target.setBanned(true); and target.setBanned(false);
The method setBanned(boolean) from the type OfflinePlayer is deprecated
+ViraRF i get the same shit
ViraRF I think you have to use it as an Player and not OfflinePlayer and let the Console then execute /pardon
And I always ignore the deprecated things, it still works(for me)
omg thanks so much!
How would u add a config for this so u can change the tempban time?
hey if u still need help i can show u how to add a config
Is Ther Anyway To Set An Option In The Config So People Can Shange The Ban Time?
TechnicMC Firstly *change secondly yes you could
And how would you do that?
How do I do multiple classes?
TheGamingApple0 you must learn java first its hard to explain all for only you
+TheGamingApple0 Create a new class then set an instance to each new class and make sure you set the instance in the Main class, or else you wont be able to pull things like arraylists from your main class.
Bruh this was last year...
Make a vid showing how to make an item, that if you right click on it it will do code :D
Make a tutorial on how to make an anti PVP log plugin ;)
mismatch: cannot convert int to boolean
plz help
Learn java.
I get a error when i do this.getConfig
like i dont know how to make a config. -_- you dont show us
BobMan198 have you do saveDefaultConfig(); at your onEnable() ?
***** there is no need ...
saveDefaultConfig(); thats what you need at your onEnable .
+Raymart Sanchez Where is the onEnable? I cant find it
+Cameron Thomson Do
public void onEnable() {
saveDefaultConfig();
}
do AutoSmelt
+PwnDZN that would just be a listener checking for a pick with itemmeta enchantment "AutoSmelt" and
setting the drop from material to smelted material
Why didn't u tell him then? -.-
How would I tell the person that warned the person that the warn was successful.Ex: I type /warn PogoStick29 You are too cool!Pogo would get the warn message and thenit would tell me "You warned PogoStick29 for: You are too cool!"
player.sendMessage(ChatColor.GRAY + "You have warned " + args[0] + "for: " + msg);
target.sendMessage(ChatColor.RED + "You have been warned for: " + msg);
Where do u put that under?
Gaming Creeper I have it setup like this:
String msg = ChatColor.DARK_GRAY + "[" + ChatColor.DARK_RED + "Warnings" + ChatColor.DARK_GRAY + "]" + ChatColor.RED + " You were warned for: ";
sender.sendMessage(ChatColor.DARK_GRAY + "[" + ChatColor.DARK_RED + "Warnings" + ChatColor.DARK_GRAY + "]" + ChatColor.RED + " You warned " + args[0] + " for: " + args[1]);
for (int i = 1; i < args.length; i++) {
msg += args[i] + " ";
}
Proxy Viewbot folder...? WTTFFF
i have a good idea: switch to windows
p.sendMessage(ChatColor.GREEN + "Warps: " +settings.getData().getConfigurationSection("warps").getKeys(false));
Code a anticheat that sends a message to all admins that the player is speed/fly/xray hacking
Slow tf down