Fixed stuff

This commit is contained in:
Norbi Peti 2016-04-10 02:25:10 +02:00
parent 3d5893360c
commit 7a2d11afa1
11 changed files with 9 additions and 13 deletions

Binary file not shown.

View file

@ -33,6 +33,6 @@
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/worldedit-bukkit-6.1.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_server/OreRegen1.5.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/ProtocolLib.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/FastLogin.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/FastLogin.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View file

@ -6,10 +6,10 @@ commands:
description: Auto-flair system. Accept or ignore flair.
usage: "&cUsage: /u accept|ignore|opme&r"
nrp:
description: Send message in Out-of-Character
description: Send message in Out-of-Character.
usage: "&cUsage: /nrp <message>&r"
ooc:
description: Send message in Out-of-Character
description: Send message in Out-of-Character.
usage: "&cUsage: /ooc <message>&r"
unlol:
description: Unlaugh the last laugh.
@ -22,7 +22,7 @@ commands:
warmode:
description: Toggles war mode
author: NorbiPeti
depend: [Essentials, Towny, Minigames, Votifier, Factions, WorldGuard, WorldEdit, OreRegenerator, ProtocolLib, FastLogin, Vault]
depend: [Essentials, Towny, Minigames, Votifier, Factions, WorldGuard, WorldEdit, ProtocolLib, FastLogin, Vault]
permissions:
tbmc.admin:
description: Gives access to /un- commands and /u admin commands

View file

@ -92,17 +92,21 @@ public class Commands implements CommandExecutor {
p.Working = true;
Timer timer = new Timer();
PlayerJoinTimerTask tt = new PlayerJoinTimerTask() {
Player player = Bukkit.getPlayer(mp.UUID);
@Override
public void run() {
try {
PluginMain.Instance.DownloadFlair(mp);
} catch (Exception e) {
e.printStackTrace();
player.sendMessage("Sorry, but an error occured while trying to get your flair. Please contact a mod.");
mp.Working = false;
return;
}
Player player = Bukkit.getPlayer(mp.UUID);
if (mp.FlairState.equals(FlairStates.Commented)) {
player.sendMessage("Sorry, but your flair isn't recorded. Please ask an admin to set it for you. Also, prepare a comment on /r/thebutton, if possible.");
mp.Working = false;
return;
}
String flair = mp.GetFormattedFlair();

View file

@ -1,6 +1,5 @@
package tk.sznp.thebuttonautoflair;
import me.steffansk1997.OreRegenerator.OreRegenerator;
import net.milkbowl.vault.chat.Chat;
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.permission.Permission;
@ -25,8 +24,6 @@ import com.palmergames.bukkit.towny.Towny;
import com.palmergames.bukkit.towny.object.Nation;
import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.TownyUniverse;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.protection.flags.StateFlag;
import java.io.*;
import java.lang.String;
@ -123,11 +120,6 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
GameMechanics.addGameMechanic(new CreativeGlobalMechanic());
((WorldGuardPlugin) Bukkit.getPluginManager().getPlugin("WorldGuard"))
.getRegionManager(Bukkit.getWorlds().get(0))
.getRegion("__global__")
.setFlag(OreRegenerator.FLAG_REGENORES, StateFlag.State.DENY);
Runnable r = new Runnable() {
public void run() {
ThreadMethod();