-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from MCCasper/master
relocation changes + deluxe sell wand support
- Loading branch information
Showing
18 changed files
with
278 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/net/crashcraft/crashclaim/pluginsupport/PluginSupportLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package net.crashcraft.crashclaim.pluginsupport; | ||
|
||
import org.bukkit.plugin.Plugin; | ||
|
||
public interface PluginSupportLoader { | ||
boolean isUnsupportedVersion(String version); | ||
|
||
boolean canLoad(); | ||
|
||
String getPluginName(); | ||
|
||
void load(Plugin plugin); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...main/java/net/crashcraft/crashclaim/pluginsupport/loader/DeluxeSellwandSupportLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package net.crashcraft.crashclaim.pluginsupport.loader; | ||
|
||
import com.google.auto.service.AutoService; | ||
import net.crashcraft.crashclaim.CrashClaim; | ||
import net.crashcraft.crashclaim.pluginsupport.PluginSupportLoader; | ||
import net.crashcraft.crashclaim.pluginsupport.plugins.DeluxeSellwandSupport; | ||
import net.crashcraft.crashclaim.pluginsupport.plugins.LuckPermsSupport; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.plugin.Plugin; | ||
|
||
@AutoService(PluginSupportLoader.class) | ||
public class DeluxeSellwandSupportLoader implements PluginSupportLoader { | ||
|
||
@Override | ||
public boolean isUnsupportedVersion(String version) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean canLoad() { | ||
return Bukkit.getPluginManager().getPlugin(getPluginName()) != null; | ||
} | ||
|
||
@Override | ||
public String getPluginName() { | ||
return "DeluxeSellwands"; | ||
} | ||
|
||
@Override | ||
public void load(Plugin plugin) { | ||
CrashClaim.getPlugin().getPluginSupportManager().register(new DeluxeSellwandSupport()); | ||
} | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/net/crashcraft/crashclaim/pluginsupport/loader/LuckPermSupportLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package net.crashcraft.crashclaim.pluginsupport.loader; | ||
|
||
import com.google.auto.service.AutoService; | ||
import net.crashcraft.crashclaim.CrashClaim; | ||
import net.crashcraft.crashclaim.pluginsupport.PluginSupportLoader; | ||
import net.crashcraft.crashclaim.pluginsupport.plugins.LuckPermsSupport; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.plugin.Plugin; | ||
|
||
@AutoService(PluginSupportLoader.class) | ||
public class LuckPermSupportLoader implements PluginSupportLoader { | ||
|
||
@Override | ||
public boolean isUnsupportedVersion(String version) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean canLoad() { | ||
return Bukkit.getPluginManager().getPlugin(getPluginName()) != null; | ||
} | ||
|
||
@Override | ||
public String getPluginName() { | ||
return "LuckPerms"; | ||
} | ||
|
||
@Override | ||
public void load(Plugin plugin) { | ||
CrashClaim.getPlugin().getPluginSupportManager().register(new LuckPermsSupport()); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...ain/java/net/crashcraft/crashclaim/pluginsupport/loader/QuickShopHikariSupportLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package net.crashcraft.crashclaim.pluginsupport.loader; | ||
|
||
import com.google.auto.service.AutoService; | ||
import net.crashcraft.crashclaim.CrashClaim; | ||
import net.crashcraft.crashclaim.pluginsupport.PluginSupportLoader; | ||
import net.crashcraft.crashclaim.pluginsupport.plugins.QuickShopHikariSupport; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.plugin.Plugin; | ||
|
||
@AutoService(PluginSupportLoader.class) | ||
public class QuickShopHikariSupportLoader implements PluginSupportLoader { | ||
@Override | ||
public boolean isUnsupportedVersion(String version) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean canLoad() { | ||
return Bukkit.getPluginManager().getPlugin(getPluginName()) != null; | ||
} | ||
|
||
@Override | ||
public String getPluginName() { | ||
return "QuickShop-Hikari"; | ||
} | ||
|
||
@Override | ||
public void load(Plugin plugin) { | ||
CrashClaim.getPlugin().getPluginSupportManager().register(new QuickShopHikariSupport()); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/net/crashcraft/crashclaim/pluginsupport/loader/WorldGuardSupportLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package net.crashcraft.crashclaim.pluginsupport.loader; | ||
|
||
import com.google.auto.service.AutoService; | ||
import net.crashcraft.crashclaim.CrashClaim; | ||
import net.crashcraft.crashclaim.pluginsupport.PluginSupportLoader; | ||
import net.crashcraft.crashclaim.pluginsupport.plugins.WorldGuardSupport; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.plugin.Plugin; | ||
|
||
@AutoService(PluginSupportLoader.class) | ||
public class WorldGuardSupportLoader implements PluginSupportLoader { | ||
@Override | ||
public boolean isUnsupportedVersion(String version) { | ||
return (int) version.charAt(0) < 7; | ||
} | ||
|
||
@Override | ||
public boolean canLoad() { | ||
return Bukkit.getPluginManager().getPlugin(getPluginName()) != null; | ||
} | ||
|
||
@Override | ||
public String getPluginName() { | ||
return "WorldGuard"; | ||
} | ||
|
||
@Override | ||
public void load(Plugin plugin) { | ||
CrashClaim.getPlugin().getPluginSupportManager().register(new WorldGuardSupport()); | ||
} | ||
} |
Oops, something went wrong.