Skip to content

Commit dc917da

Browse files
author
magiclu550
committed
[commit] #1071 update PowerPool and OpsFile (remove/addAdminMemory use in PowerPool but not in OpsFile
1 parent 6f1e7b3 commit dc917da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

JPLS/src/main/java/cn/jsmod2/core/command/OpsFile.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ public OpsFile(Server server) throws IOException{
3838
}
3939

4040
public void addOp(String name) throws IOException{
41-
PowerPool.addAdminMemory(name);
4241
List<String> all = getOps();
4342
all.add(name);
4443
FileUtils.writeLines(file,System.getProperty("file.encoding"),all);
4544
}
4645

4746
public void removeOp(String name) throws IOException{
48-
PowerPool.removeAdminMemory(name);
4947
List<String> all = getOps();
5048
all.remove(name);
5149
FileUtils.writeLines(file,System.getProperty("file.encoding"),all);

JPLS/src/main/java/cn/jsmod2/core/command/PowerPool.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ object PowerPool {
4848
}
4949

5050
def addAdmin(name:String): Unit ={
51+
addAdminMemory(name)
5152
OpsFile.getInstance.addOp(name)
5253
}
5354

5455
def removeAdmin(name:String): Unit={
56+
removeAdminMemory(name)
5557
OpsFile.getInstance.removeOp(name)
5658
}
5759

0 commit comments

Comments
 (0)