mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Bring changes from the official repo over to here
This commit is contained in:
parent
6647088429
commit
b8f4119924
6
pom.xml
6
pom.xml
@ -184,9 +184,9 @@
|
|||||||
<version>3.3</version>
|
<version>3.3</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputFileName>TotalFreedomMod.jar</outputFileName>
|
<outputFileName>TotalFreedomMod.jar</outputFileName>
|
||||||
<compilerVersion>1.7</compilerVersion>
|
<compilerVersion>1.8</compilerVersion>
|
||||||
<source>1.7</source>
|
<source>1.8</source>
|
||||||
<target>1.7</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
@ -200,6 +200,7 @@ public class Command_saconfig extends FreedomCommand
|
|||||||
{
|
{
|
||||||
admin.setName(player.getName());
|
admin.setName(player.getName());
|
||||||
admin.addIp(Ips.getIp(player));
|
admin.addIp(Ips.getIp(player));
|
||||||
|
admin.getName().isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle master builders
|
// Handle master builders
|
||||||
|
@ -25,6 +25,7 @@ public class Module_players extends HTTPDModule
|
|||||||
final JSONObject responseObject = new JSONObject();
|
final JSONObject responseObject = new JSONObject();
|
||||||
|
|
||||||
final JSONArray players = new JSONArray();
|
final JSONArray players = new JSONArray();
|
||||||
|
final JSONArray onlineadmins = new JSONArray();
|
||||||
final JSONArray masterbuilders = new JSONArray();
|
final JSONArray masterbuilders = new JSONArray();
|
||||||
final JSONArray superadmins = new JSONArray();
|
final JSONArray superadmins = new JSONArray();
|
||||||
final JSONArray telnetadmins = new JSONArray();
|
final JSONArray telnetadmins = new JSONArray();
|
||||||
@ -35,6 +36,10 @@ public class Module_players extends HTTPDModule
|
|||||||
for (Player player : Bukkit.getOnlinePlayers())
|
for (Player player : Bukkit.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
players.add(player.getName());
|
players.add(player.getName());
|
||||||
|
if (plugin.al.isAdmin(player) && !plugin.al.isAdminImpostor(player))
|
||||||
|
{
|
||||||
|
onlineadmins.add(player.getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Admins
|
// Admins
|
||||||
|
Loading…
Reference in New Issue
Block a user