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
Loudbook4w ago
Sounds like a great learning experience
StinkyEnderwear
StinkyEnderwearOP4w ago
Any suggestions?
lavaking46
lavaking464w 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
Loudbook4w ago
A good plugin learning experience It would be very easy to make your own
DJDVS
DJDVS4w ago
I see what their saying, for welcoming the player, the server gives them X amount of money
StinkyEnderwear
StinkyEnderwearOP4w ago
very helpfull thank you yep! how do i make a timer run when a player joins for first time
Loudbook
Loudbook4w ago
Are you making your own plugin now
StinkyEnderwear
StinkyEnderwearOP4w ago
yes do i need a bukkit runnable @Loudbook
Loudbook
Loudbook4w ago
Yes you do
StinkyEnderwear
StinkyEnderwearOP4w ago
im gonna send you code when im done and you tell me if it looks good or not
Loudbook
Loudbook4w ago
sure
StinkyEnderwear
StinkyEnderwearOP4w 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
Loudbook4w ago
use three ticks and why are you using GPT and that looks fine
CoreCrusher </>
Hm
Loudbook
Loudbook4w ago
yikes!
No description

Did you find this page helpful?