mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-19 14:51:38 +01:00
unInject -> uninject
This commit is contained in:
parent
4788290615
commit
797c195424
@ -297,7 +297,7 @@ public class LPBukkitPlugin extends AbstractLuckPermsPlugin {
|
||||
// uninject from players
|
||||
for (Player player : this.bootstrap.getServer().getOnlinePlayers()) {
|
||||
try {
|
||||
PermissibleInjector.unInject(player, false);
|
||||
PermissibleInjector.uninject(player, false);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ public final class PermissibleInjector {
|
||||
* @param dummy if the replacement permissible should be a dummy.
|
||||
* @throws Exception propagates any exceptions which were thrown during uninjection
|
||||
*/
|
||||
public static void unInject(Player player, boolean dummy) throws Exception {
|
||||
public static void uninject(Player player, boolean dummy) throws Exception {
|
||||
|
||||
// gets the players current permissible.
|
||||
PermissibleBase permissible = (PermissibleBase) HUMAN_ENTITY_PERMISSIBLE_FIELD.get(player);
|
||||
|
@ -194,7 +194,7 @@ public class BukkitConnectionListener extends AbstractConnectionListener impleme
|
||||
this.plugin.getBootstrap().getServer().getScheduler().runTaskLaterAsynchronously(this.plugin.getBootstrap(), () -> {
|
||||
// Remove the custom permissible
|
||||
try {
|
||||
PermissibleInjector.unInject(player, true);
|
||||
PermissibleInjector.uninject(player, true);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
@ -246,7 +246,7 @@ public class LPNukkitPlugin extends AbstractLuckPermsPlugin {
|
||||
// uninject from players
|
||||
for (Player player : this.bootstrap.getServer().getOnlinePlayers().values()) {
|
||||
try {
|
||||
PermissibleInjector.unInject(player, false);
|
||||
PermissibleInjector.uninject(player, false);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ public final class PermissibleInjector {
|
||||
* @param dummy if the replacement permissible should be a dummy.
|
||||
* @throws Exception propagates any exceptions which were thrown during uninjection
|
||||
*/
|
||||
public static void unInject(Player player, boolean dummy) throws Exception {
|
||||
public static void uninject(Player player, boolean dummy) throws Exception {
|
||||
|
||||
// gets the players current permissible.
|
||||
PermissibleBase permissible = (PermissibleBase) PLAYER_PERMISSIBLE_FIELD.get(player);
|
||||
|
@ -187,7 +187,7 @@ public class NukkitConnectionListener extends AbstractConnectionListener impleme
|
||||
this.plugin.getBootstrap().getServer().getScheduler().scheduleDelayedTask(this.plugin.getBootstrap(), () -> {
|
||||
// Remove the custom permissible
|
||||
try {
|
||||
PermissibleInjector.unInject(player, true);
|
||||
PermissibleInjector.uninject(player, true);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user