Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMerlino committed Dec 15, 2020
0 parents commit 2679617
Show file tree
Hide file tree
Showing 9 changed files with 445 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="D:/Minecraft Servers/Server Software/spigot-1.13.2.jar"/>
<classpathentry kind="lib" path="D:/Minecraft Servers/Server Software/spigot-1.14.4.jar"/>
<classpathentry kind="lib" path="D:/Minecraft Servers/Server Software/spigot-1.15.2.jar"/>
<classpathentry kind="lib" path="D:/Minecraft Servers/Server Software/spigot-1.16.4.jar"/>
<classpathentry kind="lib" path="D:/Minecraft Servers/Global Plugins/Vault.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.settings/
bin/
builds/
.classpath
.project
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>BossGamble</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
11 changes: 11 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Binary file added bin/com/jmer05/bossgamble/BossGamble$1.class
Binary file not shown.
Binary file added bin/com/jmer05/bossgamble/BossGamble.class
Binary file not shown.
74 changes: 74 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# NPC name
# If the gambler is created using `/gambler create`, what should the name above the npc be
npc-name: '&8&l» &d&nBar Tender&8&l «'

# How much should the price be multiplied by if the player wins
# Default: 2.0 (double)
win-multiplier: 2.0

# Name of the drink the bartender offers
drink-name: '&dBuy a &n%name%'

# Title of the GUI/inventory of the bartender
gui-title: 'Buy a drink'

# Message for when a drink is held down (won)
win-message: '&6You held down your drink and earned &a$%win%&6'

# Message for when a drink is lost
lost-message: '&7Better luck next time.'

# Message for when the drink is too expensive
cant-afford-message: '&4You can''t afford this drink.'

# Give player nausa effect for a breif second if they lose
nausea-on-loss: true

# Basicly the lore when you hover over the drink in the inventory
description:
- '&7Price: &d$%price%'
- '&7Chance of Winning: &d%odds%%'
- '&7Win Cash: &d$%win%'

# The array of drinks the bartender will offer
drinks:
# - name:
# price: Max 32 bit integer
# odds: Decimal 0 - 1
# color: Color in integer format
- name: 'Beer'
price: 200
odds: 0.60
color: 0xaa00aa
- name: 'Tequila'
price: 5000
odds: 0.55
color: 0x8000a8
- name: 'Whiskey'
price: 10000
odds: 0.50
color: 0xaa0088
- name: 'Wine'
price: 25000
odds: 0.45
color: 0x800060
- name: 'Gin'
price: 50000
odds: 0.40
color: 0x600080
- name: 'Vodka'
price: 100000
odds: 0.35
color: 0x800040
- name: 'Manhattan'
price: 250000
odds: 0.30
color: 0x400080
- name: 'Bourbon'
price: 500000
odds: 0.25
color: 0x600060
- name: 'Rum'
price: 1000000
odds: 0.20
color: 0x400040
12 changes: 12 additions & 0 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: BossGamble
main: com.jmer05.bossgamble.BossGamble
version: 2.0.0
authors:
- 'Josh Merlino'
depends:
- 'Vault'
api-version: 1.15
commands:
gambler:
usage: /gambler <create|remove|open> [name]
description: Manages gambler/bartenders
Loading

0 comments on commit 2679617

Please sign in to comment.