File tree Expand file tree Collapse file tree
JPLS/src/main/java/cn/jsmod2/core/command Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments