Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
The SpongePermissionsProvider is not the SponePermissionsProvider
Dieser Commit ist enthalten in:
Ursprung
baa3a0a8b5
Commit
785a827f01
@ -22,7 +22,7 @@ package com.sk89q.worldedit.sponge;
|
|||||||
import org.spongepowered.api.command.CommandCallable;
|
import org.spongepowered.api.command.CommandCallable;
|
||||||
import org.spongepowered.api.entity.living.player.Player;
|
import org.spongepowered.api.entity.living.player.Player;
|
||||||
|
|
||||||
public class SponePermissionsProvider {
|
public class SpongePermissionsProvider {
|
||||||
|
|
||||||
public boolean hasPermission(Player player, String permission) {
|
public boolean hasPermission(Player player, String permission) {
|
||||||
return player.hasPermission(permission);
|
return player.hasPermission(permission);
|
@ -64,7 +64,7 @@ public class SpongeWorldEdit {
|
|||||||
public static final String MOD_ID = "worldedit";
|
public static final String MOD_ID = "worldedit";
|
||||||
public static final String CUI_PLUGIN_CHANNEL = "WECUI";
|
public static final String CUI_PLUGIN_CHANNEL = "WECUI";
|
||||||
|
|
||||||
private SponePermissionsProvider provider;
|
private SpongePermissionsProvider provider;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private PluginContainer container;
|
private PluginContainer container;
|
||||||
@ -120,7 +120,7 @@ public class SpongeWorldEdit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.platform = new SpongePlatform(this);
|
this.platform = new SpongePlatform(this);
|
||||||
this.provider = new SponePermissionsProvider();
|
this.provider = new SpongePermissionsProvider();
|
||||||
|
|
||||||
WorldEdit.getInstance().getPlatformManager().register(platform);
|
WorldEdit.getInstance().getPlatformManager().register(platform);
|
||||||
}
|
}
|
||||||
@ -297,11 +297,11 @@ public class SpongeWorldEdit {
|
|||||||
return SpongeWorldEdit.class.getAnnotation(Plugin.class).version();
|
return SpongeWorldEdit.class.getAnnotation(Plugin.class).version();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPermissionsProvider(SponePermissionsProvider provider) {
|
public void setPermissionsProvider(SpongePermissionsProvider provider) {
|
||||||
this.provider = provider;
|
this.provider = provider;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SponePermissionsProvider getPermissionsProvider() {
|
public SpongePermissionsProvider getPermissionsProvider() {
|
||||||
return provider;
|
return provider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren