-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added vault support. Added config with placeholder for message.
- Loading branch information
Showing
6 changed files
with
54 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package me.sean0402.projectlinks.Vault; | ||
|
||
import net.milkbowl.vault.economy.Economy; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.plugin.RegisteredServiceProvider; | ||
|
||
/* | ||
Created on 01/09/2020 at 21:59 | ||
Author - Sean | ||
*/ | ||
public class Vault { | ||
|
||
private Economy econ; | ||
|
||
public boolean setupEconomy() { | ||
if (Bukkit.getPluginManager().getPlugin("Vault") == null) { | ||
return false; | ||
} | ||
|
||
RegisteredServiceProvider<Economy> rsp = Bukkit.getServicesManager().getRegistration(Economy.class); | ||
if (rsp == null) return false; | ||
econ = rsp.getProvider(); | ||
return true; | ||
} | ||
|
||
public Economy getEcon() { | ||
return econ; | ||
} | ||
|
||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: ProjectLinks | ||
main: me.sean0402.projectlinks.ProjectLinks | ||
author: Sean0402 (Sean#4543) | ||
version: 1.0.0-Alpha | ||
version: 1.0.0-Alpha | ||
softdepend: [Vault] |