forked from Jonbas/LocalShops
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed softdepend on WorldGuard. CommandShops should once again be usable
without WorldGuard, but having WorldGaurd will allow additional features. Fixes #5
- Loading branch information
Showing
8 changed files
with
56 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.aehdev.commandshops; | ||
|
||
import com.sk89q.worldguard.protection.flags.DefaultFlag; | ||
import com.sk89q.worldguard.protection.regions.ProtectedRegion; | ||
|
||
/** | ||
* Quarantine code that causes NoClassDefFoundError simply by having its class loaded when WorldGuard isn't available. | ||
* As long as we don't actually call any method of this class when WorldGuard isn't around, the class doesn't get loaded and everything will work fine. | ||
*/ | ||
public class WGProxy | ||
{ | ||
/** | ||
* Sets the GREET_MESSAGE flag of a region. | ||
* | ||
* @param regionobj the region object | ||
* @param msg the message | ||
*/ | ||
public static void setGreeting(ProtectedRegion regionobj, String msg) | ||
{ | ||
regionobj.setFlag(DefaultFlag.GREET_MESSAGE, msg); | ||
} | ||
|
||
/** | ||
* Sets the FAREWELL_MESSAGE flag of a region. | ||
* | ||
* @param regionobj the region object | ||
* @param msg the message | ||
*/ | ||
public static void setFarewell(ProtectedRegion regionobj, String msg) | ||
{ | ||
regionobj.setFlag(DefaultFlag.FAREWELL_MESSAGE, msg); | ||
} | ||
} |
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