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

Did you find this page helpful?