mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-14 05:13:14 -04:00
Added check to meatlump camera when getting the admin list if the list is empty.
This commit is contained in:
Regular → Executable
+8
-7
@@ -85,13 +85,14 @@ public class meatlump_camera extends script.base_script
|
||||
return false;
|
||||
}
|
||||
String[] adminList = getStringArrayObjVar(target, player_structure.VAR_ADMIN_LIST);
|
||||
String str_player_id = "" + player;
|
||||
for (int q = 0; q < adminList.length; q++)
|
||||
{
|
||||
if (adminList[q].equals(str_player_id))
|
||||
{
|
||||
sendSystemMessage(player, SID_NO_DESTROY_YOUR_STUFF);
|
||||
return false;
|
||||
if(adminList != null && adminList.length > 0) {
|
||||
String str_player_id = "" + player;
|
||||
int adminSize = adminList.length;
|
||||
for (int q = 0; q < adminSize; q++) {
|
||||
if (adminList[q].equals(str_player_id)) {
|
||||
sendSystemMessage(player, SID_NO_DESTROY_YOUR_STUFF);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (hasCompletedCollection(player, PHOTO_COLLECTION))
|
||||
|
||||
Reference in New Issue
Block a user