mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +00:00
Remove RedisEconomy hook due to instability (#447)
This commit is contained in:
1 parent
c3b37d87b7
commit
377e46ff92
10 files changed
+11
-77
No files matched your search
@@ -35,7 +35,6 @@ import net.william278.huskhomes.database.SqLiteDatabase;
|
||||
import net.william278.huskhomes.event.BukkitEventDispatcher;
|
||||
import net.william278.huskhomes.hook.Hook;
|
||||
import net.william278.huskhomes.hook.PlaceholderAPIHook;
|
||||
import net.william278.huskhomes.hook.RedisEconomyHook;
|
||||
import net.william278.huskhomes.hook.VaultEconomyHook;
|
||||
import net.william278.huskhomes.importer.EssentialsXImporter;
|
||||
import net.william278.huskhomes.listener.BukkitEventListener;
|
||||
@@ -218,12 +217,8 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes, BukkitTask
|
||||
HuskHomes.super.registerHooks();
|
||||
|
||||
// Hooks
|
||||
if (getSettings().doEconomy()) {
|
||||
if (isDependencyLoaded("RedisEconomy")) {
|
||||
getHooks().add(new RedisEconomyHook(this));
|
||||
} else if (isDependencyLoaded("Vault")) {
|
||||
getHooks().add(new VaultEconomyHook(this));
|
||||
}
|
||||
if (getSettings().doEconomy() && isDependencyLoaded("Vault")) {
|
||||
getHooks().add(new VaultEconomyHook(this));
|
||||
}
|
||||
if (isDependencyLoaded("PlaceholderAPI")) {
|
||||
getHooks().add(new PlaceholderAPIHook(this));
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
/*
|
||||
* This file is part of HuskHomes, licensed under the Apache License 2.0.
|
||||
*
|
||||
* Copyright (c) William278 <[email protected]>
|
||||
* Copyright (c) contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package net.william278.huskhomes.hook;
|
||||
|
||||
import dev.unnm3d.rediseconomy.api.RedisEconomyAPI;
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class RedisEconomyHook extends VaultEconomyHook {
|
||||
|
||||
public RedisEconomyHook(@NotNull HuskHomes plugin) {
|
||||
super(plugin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
RedisEconomyAPI api = RedisEconomyAPI.getAPI();
|
||||
if (api != null && !plugin.getSettings().getRedisEconomyName().equalsIgnoreCase("vault")) {
|
||||
economy = api.getCurrencyByName(plugin.getSettings().getRedisEconomyName());
|
||||
if (economy != null) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
super.initialize();
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,6 @@ version: '${version}'
|
||||
api-version: '1.16'
|
||||
softdepend:
|
||||
- Vault
|
||||
- RedisEconomy
|
||||
- PlaceholderAPI
|
||||
- dynmap
|
||||
- BlueMap
|
||||
@@ -25,44 +24,44 @@ commands:
|
||||
usage: /<command> <name>
|
||||
homelist:
|
||||
usage: /<command> [player] [page]
|
||||
aliases: [homes]
|
||||
aliases: [ homes ]
|
||||
delhome:
|
||||
usage: /<command> <name>
|
||||
edithome:
|
||||
usage: /<command> <name> [rename|description|relocate|privacy] [args]
|
||||
phome:
|
||||
usage: /<command> [<owner_name>.<home_name>]
|
||||
aliases: [publichome]
|
||||
aliases: [ publichome ]
|
||||
phomelist:
|
||||
usage: /<command> [page]
|
||||
aliases: [publichomelist, phomes]
|
||||
aliases: [ publichomelist, phomes ]
|
||||
warp:
|
||||
usage: /<command> <name>
|
||||
setwarp:
|
||||
usage: /<command> <name>
|
||||
warplist:
|
||||
usage: /<command> [page]
|
||||
aliases: [warps]
|
||||
aliases: [ warps ]
|
||||
delwarp:
|
||||
usage: /<command> <name>
|
||||
editwarp:
|
||||
usage: /<command> <name> [rename|description|relocate] [args]
|
||||
tp:
|
||||
usage: /<command> <target> [destination]
|
||||
aliases: [tpo]
|
||||
aliases: [ tpo ]
|
||||
tphere:
|
||||
usage: /<command> <player>
|
||||
aliases: [tpohere]
|
||||
aliases: [ tpohere ]
|
||||
tpa:
|
||||
usage: /<command> <player>
|
||||
tpahere:
|
||||
usage: /<command> <player>
|
||||
tpaccept:
|
||||
usage: /<command> [player]
|
||||
aliases: [tpyes]
|
||||
aliases: [ tpyes ]
|
||||
tpdecline:
|
||||
usage: /<command> [player]
|
||||
aliases: [tpdeny, tpno]
|
||||
aliases: [ tpdeny, tpno ]
|
||||
rtp:
|
||||
usage: /<command> [player] [world]
|
||||
tpignore:
|
||||
|
||||
Reference in new issue
Block a user