forked from lokka30/PhantomWorlds
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various Fixes, add unloaded/Archived to /pw list, add /pw load comman…
…d, fix backup system.
- Loading branch information
1 parent
15ab2db
commit 04e511f
Showing
24 changed files
with
708 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...okka30/phantomworlds/commands/phantomworlds/parameters/resolvers/WorldFolderResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package me.lokka30.phantomworlds.commands.phantomworlds.parameters.resolvers; | ||
/* | ||
* The New Economy | ||
* Copyright (C) 2022 - 2023 Daniel "creatorfromhell" Vidmar | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import me.lokka30.phantomworlds.commands.phantomworlds.utils.WorldFolder; | ||
import org.jetbrains.annotations.NotNull; | ||
import revxrsal.commands.process.ValueResolver; | ||
|
||
/** | ||
* StatusResolver | ||
* | ||
* @author creatorfromhell | ||
* @since 0.1.2.0 | ||
*/ | ||
public class WorldFolderResolver implements ValueResolver<WorldFolder> { | ||
|
||
@Override | ||
public WorldFolder resolve(@NotNull ValueResolverContext context) throws Throwable { | ||
final String value = context.arguments().pop(); | ||
|
||
return new WorldFolder(value); | ||
} | ||
} |
58 changes: 0 additions & 58 deletions
58
...main/java/me/lokka30/phantomworlds/commands/phantomworlds/parameters/sub/ListCommand.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.