initial commit v3 (finally)

This commit is contained in:
Martin Dvořák 2026-08-04 20:12:03 +02:00
commit 32f19e3d1f
19 changed files with 1123 additions and 0 deletions

View file

@ -0,0 +1,18 @@
package com.dvorakmortonxd.qoltweaks;
import com.dvorakmortonxd.qoltweaks.listeners.JoinListener;
import org.bukkit.plugin.java.JavaPlugin;
public final class QoLtweaks extends JavaPlugin {
@Override
public void onEnable() {
// Plugin startup logic
getServer().getPluginManager().registerEvents(new JoinListener(), this);
}
@Override
public void onDisable() {
// Plugin shutdown logic
}
}

View file

@ -0,0 +1,26 @@
package com.dvorakmortonxd.qoltweaks.listeners;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
public class JoinListener implements Listener {
@EventHandler
public void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
if (!player.hasPlayedBefore()) {
player.sendMessage("§aWelcome to the SMP, " + player.getName() + "!\nThis is your first time here, so let me tell you whats on here, theres a 3d map of the server at https://bluemap.dvorakmortonxd.dev , theres a voicechat you can optionally install as a mod (Simple Voice Chat), theres a tree chopper plugin you can toggle with /atc, theres veinminer which you can also toggle with /veinminer toggle, theres tradecycle plugin which allows you to cycle thru villagers trades by clicking [F] in any inventory slot while trading and there is ClickVillagers which allows you to pick up villagers into your inventory when shifting and right clicking,\n thats about it, enjoy your game! :3");
event.setJoinMessage("§e" + player.getName() + " has joined the SMP for the first time!");
} else {
if (player.getName().equals("dvorakmortonxd")) {
player.sendMessage("§aWelcome back to the SMP, owner");
event.setJoinMessage("§cEVERYONE HIDE THEIR XRAY, THE OWNER JOINED THE SMP!!!");
} else {
player.sendMessage("§aWelcome back to the SMP!");
event.setJoinMessage("§e" + player.getName() + " has joined the SMP");
}
}
}
}

View file

@ -0,0 +1,11 @@
name: qol-tweaks
description: $description
version: '${version}'
main: com.dvorakmortonxd.qoltweaks.QoLtweaks
folia-supported: true
api-version: '26.1.2'
load: POSTWORLD
authors: [ dvorakmortonxd ]
website: dvorakmortonxd.dev