Welcome Plugin

I'm looking for a simple welcome plugin that will broadcast when a new user joins for the first time and prompt everyone to welcome them for $100 ingame. Nothing more nothing less
15 Replies
Loudbook
Loudbook5d ago
Sounds like a great learning experience
StinkyEnderwear
StinkyEnderwearOP5d ago
Any suggestions?
lavaking46
lavaking465d ago
when you say "welcome them for $100 ingame" are you meaning the other players pay $100 in game currency to welcome the player, or they pay the player $100 ingame currency, or?
Loudbook
Loudbook5d ago
A good plugin learning experience It would be very easy to make your own
DJDVS
DJDVS5d ago
I see what their saying, for welcoming the player, the server gives them X amount of money
StinkyEnderwear
StinkyEnderwearOP4d ago
very helpfull thank you yep! how do i make a timer run when a player joins for first time
Loudbook
Loudbook4d ago
Are you making your own plugin now
StinkyEnderwear
StinkyEnderwearOP4d ago
yes do i need a bukkit runnable @Loudbook
Loudbook
Loudbook4d ago
Yes you do
StinkyEnderwear
StinkyEnderwearOP4d ago
im gonna send you code when im done and you tell me if it looks good or not
Loudbook
Loudbook4d ago
sure
StinkyEnderwear
StinkyEnderwearOP4d ago
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) } } }
Loudbook
Loudbook4d ago
use three ticks and why are you using GPT and that looks fine
! CoreCrusher
! CoreCrusher3d ago
Hm
Loudbook
Loudbook3d ago
yikes!
No description

Did you find this page helpful?