Added compatibility link with AutoUpdatePlugin.
This commit is contained in:
parent
1a1131d499
commit
36a42076e8
Binary file not shown.
@ -5,120 +5,120 @@ commands:
|
|||||||
money:
|
money:
|
||||||
description: Tells the player the amount of money they are holding.
|
description: Tells the player the amount of money they are holding.
|
||||||
usage: /money
|
usage: /money
|
||||||
permission: TwosideKeeper.money
|
permission: AutoPluginUpdate.money
|
||||||
permission-message: You don't have permission to check your balance!
|
permission-message: You don't have permission to check your balance!
|
||||||
enchant_advanced:
|
enchant_advanced:
|
||||||
description: Enchants items with more properties.
|
description: Enchants items with more properties.
|
||||||
usage: /enchant_advanced <enchantment> <level>
|
usage: /enchant_advanced <enchantment> <level>
|
||||||
permission: TwosideKeeper.enchant
|
permission: AutoPluginUpdate.enchant
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
harden_armor:
|
harden_armor:
|
||||||
description: Hardens a piece of armor.
|
description: Hardens a piece of armor.
|
||||||
usage: /harden_armor <breaks>
|
usage: /harden_armor <breaks>
|
||||||
permission: TwosideKeeper.harden
|
permission: AutoPluginUpdate.harden
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
item_cube:
|
item_cube:
|
||||||
description: Sets this item as an item cube.
|
description: Sets this item as an item cube.
|
||||||
usage: /item_cube <id>
|
usage: /item_cube <id>
|
||||||
permission: TwosideKeeper.item_cube
|
permission: AutoPluginUpdate.item_cube
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
artifact:
|
artifact:
|
||||||
description: Gives the player an artifact.
|
description: Gives the player an artifact.
|
||||||
usage: /artifact <ArtifactType> [amt]
|
usage: /artifact <ArtifactType> [amt]
|
||||||
permission: TwosideKeeper.artifact
|
permission: AutoPluginUpdate.artifact
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
recyclingcenter:
|
recyclingcenter:
|
||||||
description: Defines a new container for a Recycling Center.
|
description: Defines a new container for a Recycling Center.
|
||||||
usage: /recyclingcenter
|
usage: /recyclingcenter
|
||||||
permission: TwosideKeeper.recyclingcenter
|
permission: AutoPluginUpdate.recyclingcenter
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
glowingitem:
|
glowingitem:
|
||||||
description: Creates a new glowing item.
|
description: Creates a new glowing item.
|
||||||
usage: /glowingitem
|
usage: /glowingitem
|
||||||
permission: TwosideKeeper.glowingitem
|
permission: AutoPluginUpdate.glowingitem
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
sound:
|
sound:
|
||||||
description: Toggle sound message notifications.
|
description: Toggle sound message notifications.
|
||||||
usage: /sound
|
usage: /sound
|
||||||
permission: TwosideKeeper.sound
|
permission: AutoPluginUpdate.sound
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
log:
|
log:
|
||||||
description: Adjusts the debugging log level for TwosideKeeper in the console.
|
description: Adjusts the debugging log level for AutoPluginUpdate in the console.
|
||||||
usage: /log
|
usage: /log
|
||||||
permission: TwosideKeeper.log
|
permission: AutoPluginUpdate.log
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
servertype:
|
servertype:
|
||||||
description: Sets the server type to another type.
|
description: Sets the server type to another type.
|
||||||
usage: /servertype <MAIN|TEST|QUIET>
|
usage: /servertype <MAIN|TEST|QUIET>
|
||||||
permission: TwosideKeeper.servertype
|
permission: AutoPluginUpdate.servertype
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
ess:
|
ess:
|
||||||
description: Generates a Mysterious Essence report.
|
description: Generates a Mysterious Essence report.
|
||||||
usage: /ess
|
usage: /ess
|
||||||
permission: TwosideKeeper.report
|
permission: AutoPluginUpdate.report
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
bow:
|
bow:
|
||||||
description: Generates a Bow report.
|
description: Generates a Bow report.
|
||||||
usage: /bow
|
usage: /bow
|
||||||
permission: TwosideKeeper.report
|
permission: AutoPluginUpdate.report
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
loot:
|
loot:
|
||||||
description: Generates a Loot report.
|
description: Generates a Loot report.
|
||||||
usage: /loot
|
usage: /loot
|
||||||
permission: TwosideKeeper.report
|
permission: AutoPluginUpdate.report
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
mega:
|
mega:
|
||||||
description: Generates a Mega Piece.
|
description: Generates a Mega Piece.
|
||||||
usage: /mega <MATERIAL> <false|true>
|
usage: /mega <MATERIAL> <false|true>
|
||||||
permission: TwosideKeeper.mega
|
permission: AutoPluginUpdate.mega
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
fix:
|
fix:
|
||||||
description: Does many things depending on what item is being held. Typically if it's broken, typing this will help.
|
description: Does many things depending on what item is being held. Typically if it's broken, typing this will help.
|
||||||
usage: /fix
|
usage: /fix
|
||||||
permission: TwosideKeeper.fix
|
permission: AutoPluginUpdate.fix
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
tp_world:
|
tp_world:
|
||||||
description: Teleports to a location in a specified world.
|
description: Teleports to a location in a specified world.
|
||||||
usage: /tp_world <world> <x> <y> <z>
|
usage: /tp_world <world> <x> <y> <z>
|
||||||
permission: TwosideKeeper.tp_world
|
permission: AutoPluginUpdate.tp_world
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
stats:
|
stats:
|
||||||
description: Display statistics for damage and defense.
|
description: Display statistics for damage and defense.
|
||||||
usage: /stats [username]
|
usage: /stats [username]
|
||||||
permission: TwosideKeeper.money
|
permission: AutoPluginUpdate.money
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
awakenedartifact:
|
awakenedartifact:
|
||||||
description: Used for upgrading awakened artifacts.
|
description: Used for upgrading awakened artifacts.
|
||||||
usage: /awakenedartifact
|
usage: /awakenedartifact
|
||||||
permission: TwosideKeeper.money
|
permission: AutoPluginUpdate.money
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
awakenedartifact_ability:
|
awakenedartifact_ability:
|
||||||
description: Apply an awakened artifact ability to an item.
|
description: Apply an awakened artifact ability to an item.
|
||||||
usage: /awakenedartifact_ability <ABILITY> <level>
|
usage: /awakenedartifact_ability <ABILITY> <level>
|
||||||
permission: TwosideKeeper.artifact
|
permission: AutoPluginUpdate.artifact
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
mode:
|
mode:
|
||||||
description: Displays information about a mode.
|
description: Displays information about a mode.
|
||||||
usage: /mode <modename>
|
usage: /mode <modename>
|
||||||
permission: TwosideKeeper.money
|
permission: AutoPluginUpdate.money
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
dps:
|
dps:
|
||||||
description: DPS Logger.
|
description: DPS Logger.
|
||||||
usage: /dps
|
usage: /dps
|
||||||
permission: TwosideKeeper.money
|
permission: AutoPluginUpdate.money
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
muchlogsmuchwow:
|
muchlogsmuchwow:
|
||||||
description: D00d.
|
description: D00d.
|
||||||
usage: /muchlogsmuchwow
|
usage: /muchlogsmuchwow
|
||||||
permission: TwosideKeeper.muchlogsmuchwow
|
permission: AutoPluginUpdate.muchlogsmuchwow
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
make_set_item:
|
make_set_item:
|
||||||
description: Turns an item into a set.
|
description: Turns an item into a set.
|
||||||
usage: /make_set_item <SET> <TIER>
|
usage: /make_set_item <SET> <TIER>
|
||||||
permission: TwosideKeeper.makesetitem
|
permission: AutoPluginUpdate.makesetitem
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
||||||
craft:
|
craft:
|
||||||
description: Displays the crafting recipe for a custom item. Press Tab after typing /craft to see options.
|
description: Displays the crafting recipe for a custom item. Press Tab after typing /craft to see options.
|
||||||
usage: /craft ITEM
|
usage: /craft ITEM
|
||||||
permission: TwosideKeeper.money
|
permission: AutoPluginUpdate.money
|
||||||
permission-message: No permissions!
|
permission-message: No permissions!
|
@ -165,6 +165,7 @@ import net.md_5.bungee.api.chat.ClickEvent;
|
|||||||
import net.md_5.bungee.api.chat.ComponentBuilder;
|
import net.md_5.bungee.api.chat.ComponentBuilder;
|
||||||
import net.md_5.bungee.api.chat.HoverEvent;
|
import net.md_5.bungee.api.chat.HoverEvent;
|
||||||
import net.md_5.bungee.api.chat.TextComponent;
|
import net.md_5.bungee.api.chat.TextComponent;
|
||||||
|
import sig.plugin.AutoPluginUpdate.AnnounceUpdateEvent;
|
||||||
import sig.plugin.TwosideKeeper.Events.EntityDamagedEvent;
|
import sig.plugin.TwosideKeeper.Events.EntityDamagedEvent;
|
||||||
import sig.plugin.TwosideKeeper.HelperStructures.AnvilItem;
|
import sig.plugin.TwosideKeeper.HelperStructures.AnvilItem;
|
||||||
import sig.plugin.TwosideKeeper.HelperStructures.ArtifactAbility;
|
import sig.plugin.TwosideKeeper.HelperStructures.ArtifactAbility;
|
||||||
@ -739,9 +740,9 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
|||||||
TwosideRecyclingCenter.populateItemListFromAllNodes();
|
TwosideRecyclingCenter.populateItemListFromAllNodes();
|
||||||
log("Recycling Centers Loaded: "+TwosideRecyclingCenter.getNumberOfNodes(),3);
|
log("Recycling Centers Loaded: "+TwosideRecyclingCenter.getNumberOfNodes(),3);
|
||||||
|
|
||||||
pluginupdater = new AutoUpdatePlugin(this);
|
/*pluginupdater = new AutoUpdatePlugin(this);
|
||||||
pluginupdater.AddPlugin("TwosideKeeper", "https://dl.dropboxusercontent.com/s/z5ram6vi3jipiit/TwosideKeeper.jar");
|
pluginupdater.AddPlugin("TwosideKeeper", "https://dl.dropboxusercontent.com/s/z5ram6vi3jipiit/TwosideKeeper.jar");
|
||||||
pluginupdater.AddPlugin("aPlugin", "https://dl.dropboxusercontent.com/u/62434995/aPlugin.jar");
|
pluginupdater.AddPlugin("aPlugin", "https://dl.dropboxusercontent.com/u/62434995/aPlugin.jar");*/
|
||||||
|
|
||||||
//Create Spleef Games.
|
//Create Spleef Games.
|
||||||
TwosideSpleefGames = new SpleefManager(this);
|
TwosideSpleefGames = new SpleefManager(this);
|
||||||
@ -831,12 +832,12 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
|||||||
|
|
||||||
getServer().getScheduler().scheduleSyncRepeatingTask(this, new ControlChargeZombies(), 5l, 5l);
|
getServer().getScheduler().scheduleSyncRepeatingTask(this, new ControlChargeZombies(), 5l, 5l);
|
||||||
|
|
||||||
if (SERVER_TYPE==ServerType.MAIN) { //Only perform this on the official servers. Test servers do not require constant updating.
|
/*if (SERVER_TYPE==ServerType.MAIN) { //Only perform this on the official servers. Test servers do not require constant updating.
|
||||||
//Every 5 minutes, check for a plugin update.
|
//Every 5 minutes, check for a plugin update.
|
||||||
if (!restarting_server) {
|
if (!restarting_server) {
|
||||||
Bukkit.getScheduler().runTaskTimerAsynchronously(this, pluginupdater, 6000l, 6000l);
|
Bukkit.getScheduler().runTaskTimerAsynchronously(this, pluginupdater, 6000l, 6000l);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
getServer().getScheduler().runTaskLaterAsynchronously(this, new DiscordStatusUpdater(), 300l);
|
getServer().getScheduler().runTaskLaterAsynchronously(this, new DiscordStatusUpdater(), 300l);
|
||||||
|
|
||||||
@ -4928,6 +4929,11 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler(priority=EventPriority.LOW,ignoreCancelled = true)
|
||||||
|
public void announcePluginUpdateEvent(AnnounceUpdateEvent ev) {
|
||||||
|
aPlugin.API.discordSendRaw(ev.getAnnouncementMessage());
|
||||||
|
}
|
||||||
|
|
||||||
@EventHandler(priority=EventPriority.LOW,ignoreCancelled = true)
|
@EventHandler(priority=EventPriority.LOW,ignoreCancelled = true)
|
||||||
public void expEvent(PlayerExpChangeEvent ev) {
|
public void expEvent(PlayerExpChangeEvent ev) {
|
||||||
double val = Math.random();
|
double val = Math.random();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user