mirror of
https://github.com/TotalFreedomMC/TF-WorldGuardExtraFlagsPlugin.git
synced 2024-09-28 11:24:53 +00:00
Fixed command-on-exit & console-command-on-exit executes on entry (also removed it from oping idk wth that was doing there)
This commit is contained in:
parent
0a15fa5dff
commit
d58e90ffe5
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.goldtreeservers</groupId>
|
||||
<artifactId>worldguardextraflags</artifactId>
|
||||
<version>2.14.1</version>
|
||||
<version>2.14.2</version>
|
||||
<name>WorldGuardExtraFlags</name>
|
||||
<build>
|
||||
<finalName>WorldGuardExtraFlagsPlugin</finalName>
|
||||
|
|
|
@ -63,9 +63,9 @@ public class CommandOnExitFlag extends Handler
|
|||
}
|
||||
}
|
||||
|
||||
for(Set<String> commands_ : commands)
|
||||
for(Set<String> commands_ : this.lastCommands)
|
||||
{
|
||||
if (!this.lastCommands.contains(commands_))
|
||||
if (!commands.contains(commands_))
|
||||
{
|
||||
boolean isOp = player.isOp();
|
||||
|
||||
|
|
|
@ -63,15 +63,9 @@ public class ConsoleCommandOnExitFlag extends Handler
|
|||
}
|
||||
}
|
||||
|
||||
boolean isOp = player.isOp();
|
||||
|
||||
try
|
||||
for(Set<String> commands_ : this.lastCommands)
|
||||
{
|
||||
player.setOp(true);
|
||||
|
||||
for(Set<String> commands_ : commands)
|
||||
{
|
||||
if (!this.lastCommands.contains(commands_))
|
||||
if (!commands.contains(commands_))
|
||||
{
|
||||
for(String command : commands_)
|
||||
{
|
||||
|
@ -81,11 +75,6 @@ public class ConsoleCommandOnExitFlag extends Handler
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
player.setOp(isOp);
|
||||
}
|
||||
|
||||
this.lastCommands = commands;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: WorldGuardExtraFlags
|
||||
version: 2.14.1
|
||||
version: 2.14.2
|
||||
description: Adds more flags to worldguard to help manage your server easily!
|
||||
author: isokissa3
|
||||
website: https://goldtreevers.net
|
||||
|
|
Loading…
Reference in a new issue