mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 10:29:48 -05:00
change . to -
Former-commit-id: 9ffb287070ef103a6376e52d81a83c729ea58a7f
This commit is contained in:
1 parent
b597615a66
commit
97a86ad626
4 files changed
+20
-11
No files matched your search
+2
-2
@@ -61,8 +61,8 @@ public class PlotSquaredIntegration implements IntegratedPlugin {
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
this.createFlag = new BooleanFlag("quickshop.create");
|
||||
this.tradeFlag = new BooleanFlag("quickshop.trade");
|
||||
this.createFlag = new BooleanFlag("quickshop-create");
|
||||
this.tradeFlag = new BooleanFlag("quickshop-trade");
|
||||
Flags.registerFlag(this.createFlag);
|
||||
Flags.registerFlag(this.tradeFlag);
|
||||
}
|
||||
|
||||
+4
-4
@@ -54,11 +54,11 @@ public class ResidenceIntegration implements IntegratedPlugin {
|
||||
if("FLAG".equalsIgnoreCase(limit)){
|
||||
if(residence == null){
|
||||
//Check world permission
|
||||
if(!Residence.getInstance().getWorldFlags().getPerms(location.getWorld().getName()).playerHas(player, Flags.getFlag("quickshop.create"), false)){
|
||||
if(!Residence.getInstance().getWorldFlags().getPerms(location.getWorld().getName()).playerHas(player, Flags.getFlag("quickshop-create"), false)){
|
||||
return false;
|
||||
}
|
||||
}else{
|
||||
if(!residence.getPermissions().playerHas(player,Flags.getFlag("quickshop.create"),false)){
|
||||
if(!residence.getPermissions().playerHas(player,Flags.getFlag("quickshop-create"),false)){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -88,11 +88,11 @@ public class ResidenceIntegration implements IntegratedPlugin {
|
||||
if("FLAG".equalsIgnoreCase(limit)){
|
||||
if(residence == null){
|
||||
//Check world permission
|
||||
if(!Residence.getInstance().getWorldFlags().getPerms(location.getWorld().getName()).playerHas(player, Flags.getFlag("quickshop.trade"), false)){
|
||||
if(!Residence.getInstance().getWorldFlags().getPerms(location.getWorld().getName()).playerHas(player, Flags.getFlag("quickshop-trade"), false)){
|
||||
return false;
|
||||
}
|
||||
}else{
|
||||
if(!residence.getPermissions().playerHas(player,Flags.getFlag("quickshop.trade"),true)){
|
||||
if(!residence.getPermissions().playerHas(player,Flags.getFlag("quickshop-trade"),true)){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -55,8 +55,8 @@ public class WorldGuardIntegration implements IntegratedPlugin {
|
||||
FlagRegistry registry = WorldGuard.getInstance().getFlagRegistry();
|
||||
try {
|
||||
// create a flag with the name "my-custom-flag", defaulting to true
|
||||
this.createFlag = new StateFlag("quickshop.create", false);
|
||||
this.tradeFlag = new StateFlag("quickshop.trade", true);
|
||||
this.createFlag = new StateFlag("quickshop-create", false);
|
||||
this.tradeFlag = new StateFlag("quickshop-trade", true);
|
||||
registry.register(this.createFlag);
|
||||
registry.register(this.tradeFlag);
|
||||
} catch (FlagConflictException e) {
|
||||
|
||||
@@ -387,18 +387,27 @@ integration:
|
||||
#Priority: UP to DOWN
|
||||
#
|
||||
#Avaliable field:
|
||||
#FLAG = Region must set quickshop.create flag available for players.
|
||||
#FLAG = Region must set quickshop-create flag available for players.
|
||||
#BUILD = Player must have ability to build at the target region.
|
||||
#CHEST_ACCESS = Player must can access chest.
|
||||
#INTERACT = Player must have ability to interact in the target region.
|
||||
create:
|
||||
- FLAG
|
||||
- CHEST_ACCESS
|
||||
#Player if want create a shop, player must pass which checks?
|
||||
#You can use multi checks in same time.
|
||||
#Priority: UP to DOWN
|
||||
#
|
||||
#Avaliable field:
|
||||
#FLAG = Region must set quickshop-trade flag available for players.
|
||||
#BUILD = Player must have ability to build at the target region.
|
||||
#CHEST_ACCESS = Player must can access chest.
|
||||
#INTERACT = Player must have ability to interact in the target region.
|
||||
trade: []
|
||||
plotsquared:
|
||||
enable: false
|
||||
#Player if want create a shop, player must have quickshop.create flag
|
||||
#Player if want trade a shop, player must have quickshop.trade flag
|
||||
#Player if want create a shop, player must have quickshop-create flag
|
||||
#Player if want trade a shop, player must have quickshop-trade flag
|
||||
residence:
|
||||
enable: false
|
||||
#Player if want create a shop, player must pass which checks?
|
||||
|
||||
Reference in new issue
Block a user