@ -9,12 +9,14 @@ import ru.simsonic.rscPermissions.BukkitPluginMain;
public final class VaultChat extends net . milkbowl . vault . chat . Chat
public final class VaultChat extends net . milkbowl . vault . chat . Chat
{
{
private final BridgeForBukkitAPI bridge ;
private final BridgeForBukkitAPI bridge ;
private final BukkitPluginMain rscp ;
private final BukkitPluginMain rscp ;
public VaultChat ( BridgeForBukkitAPI bridge , net . milkbowl . vault . permission . Permission perms )
private final VaultPermission permissions ;
public VaultChat ( BridgeForBukkitAPI bridge , VaultPermission permissions )
{
{
super ( perms ) ;
super ( permission s ) ;
this . bridge = bridge ;
this . bridge = bridge ;
this . rscp = ( BukkitPluginMain ) bridge . getPlugin ( ) ;
this . rscp = ( BukkitPluginMain ) bridge . getPlugin ( ) ;
this . permissions = permissions ;
}
}
@Override
@Override
public String getName ( )
public String getName ( )
@ -26,6 +28,7 @@ public final class VaultChat extends net.milkbowl.vault.chat.Chat
{
{
return bridge . isEnabled ( ) ;
return bridge . isEnabled ( ) ;
}
}
// ***** GET PLAYER PREFIX *****
@Override
@Override
public String getPlayerPrefix ( String world , String player )
public String getPlayerPrefix ( String world , String player )
{
{
@ -33,93 +36,100 @@ public final class VaultChat extends net.milkbowl.vault.chat.Chat
return online ! = null ? rscp . permissionManager . getPlayerPrefix ( online ) : null ;
return online ! = null ? rscp . permissionManager . getPlayerPrefix ( online ) : null ;
}
}
@Override
@Override
public String getPlayerSuf fix ( String world , String player )
public String getPlayerPre fix ( String world , OfflinePlayer player )
{
{
final Player online = bridge . findPlayer ( player ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
return online ! = null ? rscp . permissionManager . getPlayerSuffix ( online ) : null ;
}
}
@Override
@Override
public void setPlayerPrefix ( String world , String player , String prefix )
public String getPlayerPrefix ( Player player )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
return rscp . permissionManager . getPlayerPrefix ( player ) ;
}
}
// ***** GET PLAYER SUFFIX *****
@Override
@Override
public void s etPlayerSuffix( String world , String player , String suffix )
public String g etPlayerSuffix( String world , String player )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
final Player online = bridge . findPlayer ( player ) ;
return online ! = null ? rscp . permissionManager . getPlayerSuffix ( online ) : null ;
}
}
@Override
@Override
public String getGroupPre fix ( String world , String group )
public String getPlayerSuf fix ( String world , OfflinePlayer player )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
@Override
@Override
public void setGroupPrefix ( String world , String group , String prefix )
public String getPlayerSuffix ( Player player )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
return rscp . permissionManager . getPlayerSuffix ( player ) ;
}
}
// ***** SET PLAYER PREFIX *****
@Override
@Override
public String getGroupSuf fix( String world , String group )
public void setPlayerPre fix( String world , String player , String prefix )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
@Override
@Override
public void setGroupSuf fix ( String world , String group , String suf fix)
public void setPlayerPre fix ( String world , OfflinePlayer player , String pre fix)
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
@Override
@Override
public String getPlayerPrefix ( String world , OfflinePlayer player )
public void setPlayerPrefix ( Player player , String prefix )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
// ***** SET PLAYER SUFFIX *****
@Override
@Override
public String getPlayerPrefix ( Player player )
public void setPlayerSuffix ( String world , String player , String suffix )
{
{
return rscp . permissionManager . getPlayerPrefix ( player ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
@Override
@Override
public void setPlayerPre fix ( String world , OfflinePlayer player , String pre fix)
public void setPlayerSuf fix ( String world , OfflinePlayer player , String suf fix)
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
@Override
@Override
public void setPlayerPre fix ( Player player , String pre fix)
public void setPlayerSuf fix ( Player player , String suf fix)
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
// ***** GET GROUP PREFIX *****
@Override
@Override
public String getPlayerSuf fix ( String world , OfflinePlayer player )
public String getGroupPre fix ( String world , String group )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
@Override
@Override
public String getPlayerSuffix ( Player player )
public String getGroupPrefix ( World world , String group )
{
{
return rscp . permissionManager . getPlayerSuffix ( player ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
// ***** GET GROUP SUFFIX *****
@Override
@Override
public void setPlayer Suffix( String world , OfflinePlayer player , String suffix )
public String getGroup Suffix( String world , String group )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
@Override
@Override
public void setPlayerSuffix ( Player player , String suffix )
public String getGroupSuffix ( World world , String group )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
// ***** SET GROUP PREFIX *****
@Override
@Override
public String g etGroupPrefix( World world , String group )
public void s etGroupPrefix( World world , String group , String prefix )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
@Override
@Override
public void setGroupPrefix ( World world , String group , String prefix )
public void setGroupPrefix ( String world , String group , String prefix )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
// ***** SET GROUP SUFFIX *****
@Override
@Override
public String getGroupSuffix ( World world , String group )
public void setGroupSuffix ( String world , String group , String suffix )
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
@ -128,6 +138,7 @@ public final class VaultChat extends net.milkbowl.vault.chat.Chat
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
// ***********************************************************
@Override
@Override
public boolean playerInGroup ( String world , OfflinePlayer player , String group )
public boolean playerInGroup ( String world , OfflinePlayer player , String group )
{
{
@ -164,6 +175,7 @@ public final class VaultChat extends net.milkbowl.vault.chat.Chat
{
{
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
throw new UnsupportedOperationException ( "This method is unsupported by rscPermissions." ) ;
}
}
// ***** THIS IS TRASH FOR ME :) *****
@Override
@Override
public int getPlayerInfoInteger ( String world , String player , String node , int defaultValue )
public int getPlayerInfoInteger ( String world , String player , String node , int defaultValue )
{
{