Call right function in SimplyAPI
This commit is contained in:
parent
4bac4a1d70
commit
b9dcbbfc09
@ -16,61 +16,61 @@ public class SimplyAPI implements PermsConfig {
|
|||||||
@Override
|
@Override
|
||||||
public void removePlayer(String player) {
|
public void removePlayer(String player) {
|
||||||
plugin.config.removePlayer(player);
|
plugin.config.removePlayer(player);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removePlayerGroups(String player) {
|
public void removePlayerGroups(String player) {
|
||||||
plugin.config.removePlayerGroups(player);
|
plugin.config.removePlayerGroups(player);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removePlayerGroup(String player, String group) {
|
public void removePlayerGroup(String player, String group) {
|
||||||
plugin.config.removePlayerGroup(player, group);
|
plugin.config.removePlayerGroup(player, group);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setPlayerGroup(String player, String group) {
|
public void setPlayerGroup(String player, String group) {
|
||||||
plugin.config.setPlayerGroup(player, group);
|
plugin.config.setPlayerGroup(player, group);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addPlayerGroup(String player, String group) {
|
public void addPlayerGroup(String player, String group) {
|
||||||
plugin.config.addPlayerGroup(player, group);
|
plugin.config.addPlayerGroup(player, group);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addPlayerPermission(String player, String permission, boolean value) {
|
public void addPlayerPermission(String player, String permission, boolean value) {
|
||||||
plugin.config.addPlayerPermission(player, permission, value);
|
plugin.config.addPlayerPermission(player, permission, value);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addPlayerPermission(String player, String world, String permission, boolean value) {
|
public void addPlayerPermission(String player, String world, String permission, boolean value) {
|
||||||
plugin.config.addPlayerPermission(player, world, permission, value);
|
plugin.config.addPlayerPermission(player, world, permission, value);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removePlayerPermissions(String player) {
|
public void removePlayerPermissions(String player) {
|
||||||
plugin.config.removePlayerPermissions(player);
|
plugin.config.removePlayerPermissions(player);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removePlayerPermission(String player, String permission) {
|
public void removePlayerPermission(String player, String permission) {
|
||||||
plugin.config.removePlayerPermission(player, permission);
|
plugin.config.removePlayerPermission(player, permission);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removePlayerPermission(String player, String world, String permission) {
|
public void removePlayerPermission(String player, String world, String permission) {
|
||||||
plugin.config.removePlayerPermission(player, world, permission);
|
plugin.config.removePlayerPermission(player, world, permission);
|
||||||
refreshPermissions();
|
plugin.refreshPlayerPermissions(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -200,13 +200,13 @@ public class SimplyAPI implements PermsConfig {
|
|||||||
@Override
|
@Override
|
||||||
public void addMessage(String key, String message) {
|
public void addMessage(String key, String message) {
|
||||||
plugin.config.addMessage(key, message);
|
plugin.config.addMessage(key, message);
|
||||||
refreshPermissions();
|
plugin.refreshConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removeMessage(String key) {
|
public void removeMessage(String key) {
|
||||||
plugin.config.removeMessage(key);
|
plugin.config.removeMessage(key);
|
||||||
refreshPermissions();
|
plugin.refreshConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -228,7 +228,7 @@ public class SimplyAPI implements PermsConfig {
|
|||||||
@Override
|
@Override
|
||||||
public void setDebug(boolean debug) {
|
public void setDebug(boolean debug) {
|
||||||
plugin.config.setDebug(debug);
|
plugin.config.setDebug(debug);
|
||||||
refreshPermissions();
|
plugin.refreshConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void refreshPermissions() {
|
public void refreshPermissions() {
|
||||||
|
Loading…
Reference in New Issue
Block a user