mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 22:14:45 +00:00
Minuteman command changes and overrides
This commit is contained in:
1 parent
2aa106b29c
commit
d5bf05e0ec
7 files changed
+144
-11
No files matched your search
@@ -3,6 +3,7 @@ package me.ShermansWorld.AlathraWar.commands;
|
||||
import com.palmergames.bukkit.towny.TownyAPI;
|
||||
import com.palmergames.bukkit.towny.exceptions.NotRegisteredException;
|
||||
import com.palmergames.bukkit.towny.object.Nation;
|
||||
import com.palmergames.bukkit.towny.object.Resident;
|
||||
import com.palmergames.bukkit.towny.object.Town;
|
||||
import me.ShermansWorld.AlathraWar.Raid;
|
||||
import me.ShermansWorld.AlathraWar.Siege;
|
||||
@@ -192,4 +193,9 @@ public class CommandHelper {
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
public static long getPlayerJoinDate(String player) {
|
||||
Resident res = TownyAPI.getInstance().getResident(player);
|
||||
return res.getRegistered();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user