StinkyEnderwear
StinkyEnderwear
AAdmincraft
Created by StinkyEnderwear on 3/29/2025 in #questions
Welcome Plugin
import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.entity.Player; public class WelcomePlugin extends JavaPlugin implements Listener { @Override public void onEnable() { Bukkit.getPluginManager().registerEvents(this, this); } @EventHandler public void onPlayerJoin(PlayerJoinEvent event) { Player player = event.getPlayer(); if (!player.hasPlayedBefore()) { // Check if it's their first time Bukkit.getScheduler().runTaskLater(this, () -> { Bukkit.broadcastMessage(ChatColor.GREEN + "A new player, " + ChatColor.AQUA + player.getName() + ChatColor.GREEN + ", has joined! Type " + ChatColor.YELLOW + "/welcome " + ChatColor.GREEN + "to welcome them and receive 100!"); }, 200L); // 10 seconds (200 ticks) } } }
22 replies
AAdmincraft
Created by StinkyEnderwear on 3/29/2025 in #questions
Welcome Plugin
im gonna send you code when im done and you tell me if it looks good or not
22 replies
AAdmincraft
Created by StinkyEnderwear on 3/29/2025 in #questions
Welcome Plugin
@Loudbook
22 replies
AAdmincraft
Created by StinkyEnderwear on 3/29/2025 in #questions
Welcome Plugin
yes do i need a bukkit runnable
22 replies
AAdmincraft
Created by StinkyEnderwear on 3/29/2025 in #questions
Welcome Plugin
how do i make a timer run when a player joins for first time
22 replies
AAdmincraft
Created by StinkyEnderwear on 3/29/2025 in #questions
Welcome Plugin
yep!
22 replies
AAdmincraft
Created by StinkyEnderwear on 3/29/2025 in #questions
Welcome Plugin
very helpfull thank you
22 replies
AAdmincraft
Created by StinkyEnderwear on 3/29/2025 in #questions
Welcome Plugin
Any suggestions?
22 replies
AAdmincraft
Created by StinkyEnderwear on 3/28/2025 in #questions
Mace Exploit Fix
I said i don't want a full blown anti cheat
18 replies
AAdmincraft
Created by StinkyEnderwear on 3/25/2025 in #questions
Need Help Improving Performance on Anarchy Server
Can I DM you? You have much more knowledge about this than me, and I would love to get this sorted out
8 replies
AAdmincraft
Created by StinkyEnderwear on 3/25/2025 in #questions
Need Help Improving Performance on Anarchy Server
No description
8 replies