riking
12ed2ac07b
Have ExperienceCommand and SkillresetCommand explicitly handle 'all'
2013-11-19 18:56:47 -08:00
GJ
69ef7f40d8
Command cleanup.
2013-11-08 23:14:11 +01:00
TfT_02
bded936af5
Cleanup our imports
2013-10-31 22:30:05 +01:00
GJ
fd9154e009
Fixed bug with toggle commands not properly displaying the success message.
2013-10-29 11:45:27 -04:00
GJ
97b9214d6e
Wrap these inside McMMOPlayer for easier access.
2013-10-29 11:02:57 -04:00
GJ
9b3ae5c729
These belong in their managers, not in McMMOPlayer
2013-10-28 16:14:52 -04:00
GJ
60d69e3cc4
Create wrapper to handle all PTP data.
2013-10-28 15:49:48 -04:00
GJ
c79f8043ad
Use proper functions where they exist, and move functions to better locations.
2013-10-28 15:12:24 -04:00
GJ
8369ae4616
Don't use a class variable here.
2013-10-28 14:14:20 -04:00
GJ
9ef3c721df
Formatting cleanup from the scoreboard update. Also handle skill permissions differently.
2013-10-28 13:04:46 -04:00
GJ
b3415ee2f4
Cleanup some of Riking's mess.
2013-10-25 17:05:36 -04:00
riking
17b7a9bf10
Add message to /mcscoreboard time [n]
2013-10-25 11:41:21 -07:00
riking
bd611ee11c
Add message to /mcscoreboard keep when a board is not shown
2013-10-25 11:39:24 -07:00
riking
95f15e68fe
New and Improved Scoreboard System
...
- Scoreboards now AUTO-UPDATE
- Scoreboards now COME IN COLOR
- If you want, they can come in EVERY COLOR (Config setting)
- Scoreboards can be displayed alongside chat output!
- Prevention of denial of service to SQL via spamming /mctop using a cooldown
- Added /mccooldown command to show cooldowns for all available skills
2013-10-25 09:49:02 -07:00
TfT_02
c2e100b1e3
Use hook location in Master Angler
2013-10-24 21:19:24 +02:00
GJ
b8c1f868f5
Event updates
2013-10-18 08:54:06 -04:00
GJ
468fbdab56
SkillUtils cleanup, EventUtils creation
...
Move some functions in SkillUtils to more relevant locations.
Begin work on utility class to handle all event calls.
2013-10-15 13:03:33 -04:00
riking
44e3e4d1e1
Localize several command results
...
Also don't nullcheck the null-guarded mcMMOPlayer in PartyManager
2013-10-14 20:48:36 +02:00
TfT_02
dd64c4008b
Account for Master Angler config values in /fishing
...
Fixes #1537
2013-10-14 16:28:48 +02:00
TfT_02
ed8197bd50
Remove level based bonus from Master Angler
...
Let's try this another way, instead of removing this passive ability all togheter I think it would be nice to keep the boat/biome catch rate boost. The level based boost was out of hand and counter-intuitive as it made leveling easier on high skill levels.
2013-10-12 02:41:13 +02:00
TfT_02
82f8c4ce36
Fishing Treasure Hunter overhaul
2013-10-12 02:41:13 +02:00
TfT_02
ec378d046f
Reformat advanced.yml making the keys consistent
2013-10-11 15:18:56 +02:00
GJ
a25dc24c6c
No reason to have this many functions...
2013-10-11 15:18:56 +02:00
TfT_02
68eb51a3d0
Removed Shake_UnlockLevel config option
...
because it is no longer needed.
2013-10-11 15:18:56 +02:00
GJ
9485869014
Move these functions to SkillType.
2013-10-09 09:20:32 -04:00
GJ
3927427b5b
Refactor all our repairable stuff into a special package.
2013-10-07 10:23:04 -04:00
TfT_02
4aef4c63fc
Split the locale skill guides into seperate sections
...
This will make it easier for translators to keep up with translating our skill guides. Closes #560
2013-10-07 16:05:11 +02:00
Kane York
0cd0919447
/mcconvert: Fix mismatched type in list.remove() call
...
The databaseTypes collection is a List<String>, so attempting to remove a DatabaseType object will have no effect.
2013-10-05 14:07:06 -07:00
Kane York
288287badf
Add holiday celebration for the console
2013-10-01 22:06:51 +02:00
TfT_02
00918fbdc1
Change this back, getPlayerExact() is faster
2013-09-30 14:04:34 +02:00
TfT_02
5ad0f2c624
Do a little bit of localebending
2013-09-30 11:32:35 +02:00
TfT_02
45143836e5
Fixed /party kick
...
Fixes #1499
2013-09-30 10:39:33 +02:00
TfT_02
6eb255632f
Clean this up a little bit
2013-09-30 10:24:36 +02:00
TfT_02
d5bd9a1693
Fixed some small mistakes in CommandUtils
2013-09-23 20:22:41 +02:00
GJ
5d7d779a49
Changed format of repair.vanilla.yml. **YOU WILL NEED TO UPDATE YOUR FILE TO THE NEW FORMAT**
2013-09-19 11:02:47 -04:00
GJ
5a3f8ad15f
Add COTW info for horses to the Taming command.
2013-09-17 14:13:11 -04:00
TfT_02
7bac0e2ca5
Dropped SpoutPlugin support
...
Because SpoutPlugin is not being updated to 1.6.x and mcMMO 1.4.07 does
not support any CB version below 1.6.x SpoutPlugin support is no longer
needed.
https://blog.spout.org/minecraft-1-6-and-the-legacy-finale/
2013-09-16 16:48:42 +02:00
TfT_02
17faf1561f
Refactor to getMaxLength
2013-09-15 21:45:16 +02:00
t00thpick1
0f2d0aee5f
Fix NPE on /addxp
2013-09-12 21:21:00 -04:00
GJ
25e4700ef9
Changed various values to double in advanced.yml for the sake of consistency.
2013-09-12 14:18:13 -04:00
GJ
af39e84aef
Actually remove /mmoupdate, fix usage strings for /mcconvert, fix tab completion
...
Fixes #1451
2013-09-10 15:47:47 -04:00
TfT_02
93fe2ff504
Cleanup our imports
2013-09-10 15:28:11 +02:00
GJ
7523afffb5
Updated permissions for more control over Call of the Wild.
2013-08-30 13:50:34 -04:00
GJ
435522415d
This is better too.
2013-08-26 12:20:56 -04:00
GJ
a17d1d3a2f
More cleanup to PartyManager.
2013-08-26 11:55:35 -04:00
GJ
94a5bef62c
Cleaning up PartyManager
2013-08-26 08:39:24 -04:00
GJ
23983422e0
Cleanup & remove code duplication.
2013-08-23 14:08:16 -04:00
TfT_02
956bf2d763
Added McMMOPlayerLevelDownEvent and McMMOPlayerLevelChangeEvent
2013-08-23 19:54:30 +02:00
TfT_02
964b2636fb
Move experience related settings from config.yml to experience.yml
2013-08-23 19:37:44 +02:00
TfT_02
0455416dec
Reorganized Hardcore locale strings
2013-08-22 22:54:05 +02:00
TfT_02
a6e7febf77
Hardcore mode can now be toggled for each skill individually
2013-08-22 22:54:05 +02:00
GJ
ede0757d83
Remove /mmoupdate and replace with /mcconvert database
2013-08-22 22:33:06 +02:00
GJ
223649ec28
Formatting and localizing.
2013-08-22 22:22:19 +02:00
TfT_02
68e433b3b7
Added new ExperienceFormula config and /mcconvert command
2013-08-22 22:22:19 +02:00
TfT_02
9acaa7b126
We're expecting a null object here as well.
2013-08-21 16:48:08 +02:00
gmcferrin
2bae937b28
Don't throw a warning if we're expecting a null object.
2013-08-21 14:20:12 +00:00
GJ
50ef8d9610
Improvements to mcMMOPlayer lookup.
2013-08-20 14:10:49 -04:00
TfT_02
6518d192ec
Improved partial name matcher
...
Fixes #1164
2013-08-19 10:37:04 +02:00
TfT_02
fb5bab6e92
String values are compared using '.equals()' not '=='
2013-08-10 22:24:13 +02:00
TfT_02
90fcf35c34
Javadocs cleanup
2013-08-10 20:10:45 +02:00
GJ
c501ebb357
Clean up after our experience commands. Fixes #1324
2013-07-30 14:47:11 -04:00
GJ
e0e574c19e
Fix a potential issue with PTP and Chimera Wing teleportation cooldowns.
2013-07-24 13:50:33 -04:00
GJ
ee86f8244f
Put ShareMode in its own class.
2013-07-15 09:56:45 -04:00
GJ
c9aba059e2
Don't provide direct access to the players map.
2013-07-15 09:14:23 -04:00
GJ
dc9469c0cc
Refactor to match standards set for where datatypes should be located.
2013-07-15 08:44:13 -04:00
GJ
68727496ad
Useless casting and elses.
2013-07-11 12:49:01 -04:00
GJ
69aead58a7
Using getPlayerExact is faster.
2013-07-08 19:15:44 -04:00
riking
23729f45ee
Pull changes from dev-dbman (commit f63c5e3
)
2013-06-28 15:02:58 -07:00
GJ
190b7ee1f5
ChatManagers...
2013-06-07 15:46:58 -04:00
T00thpick1
8705974e08
Use a single manager to handle our databases.
2013-06-07 15:46:57 -04:00
TfT_02
de0487d16f
This should make it work properly
2013-06-07 15:46:56 -04:00
TfT_02
fc0c386ecb
Fixing this as pointed out by Riking
2013-06-07 15:46:55 -04:00
TfT_02
86db4251a2
Check visibility before range
2013-06-07 15:46:55 -04:00
TfT_02
375fa4f75c
Added permission node to prevent inspecting hidden players
2013-06-07 15:46:53 -04:00
GJ
0ba4bc25c7
Use player objects instead of names - should be more efficient and less
...
buggy.
2013-05-28 13:33:20 -04:00
GJ
0b6372a6ea
Don't run these calculations twice. Also, pretty sure one of these was
...
bugged.
2013-05-21 11:41:39 -04:00
GJ
a2f80569e3
Fire McMMOPlayerLevelUp events for our experience commands, when
...
applicable. Fixes #921
2013-05-21 09:31:25 -04:00
GJ
60304e9643
Because Minecraft does stupid things with "/" in the chat.
...
Fixes #994
2013-05-20 08:56:02 -04:00
GJ
a7861fc54b
Move all miscellaneous Spout code to a single location.
2013-05-16 10:51:18 -04:00
TfT_02
3158c7e3eb
List /party itemshare and /party expshare in /party ?
...
Closes #913
2013-05-15 19:00:34 +02:00
GJ
8e0a1f4f70
Summon the kraken at will!
2013-05-03 16:14:03 -04:00
TfT_02
f6e9fd9f3a
Add more localisation
2013-05-02 21:02:12 +02:00
GJ
e7c749ee3a
Added boosts to Fishing chance depending on conditions. Also, the
...
kraken, now with 100% more sound!
2013-05-01 21:57:42 -04:00
GJ
3322677d32
Added "Ice Fishing" ability to Fishing
2013-05-01 10:18:19 -04:00
GJ
d34a0cca30
Fix issue with using /mcpurge, /mcremove, and /mmoupdate from the
...
console. These commands now default to OP, because frankly there are
much worse things someone can do with OP status than mess with the mcMMO
database.
2013-05-01 08:40:01 -04:00
GJ
b55ce30b2d
Clean up our main class a bit more. Still not perfect, but it's getting
...
there.
2013-04-30 15:07:29 -04:00
GJ
88f43d9a91
Add command to clear or change scoreboards.
2013-04-30 09:48:53 -04:00
GJ
50c9649b23
mcMMO - Now with 100% more scoreboards!
...
mcMMO now allows for the use of scoreboards to display information in
several instances. By default, all scoreboards are enabled in the config,
and will only display for 10 seconds. After 10 seconds, the scoreboard
will go away and revert to the previously displayed scoreboard, if one
exists.
A global scoreboard now exists for tracking all player stats, and will be
displayed when /mctop is used. Your name will be highlighted in gold when
looking through the scoreboard. Additionally, the scoreboard will display
players in groups of 15, rather than groups of 10 like in chat.
Unfortunately, due to the limitations of scoreboards, the player's rank
will not be displayed in front of their name.
The scoreboard area is now also used for displaying data for /mcrank,
/inspect. and /mcstats. Due to the way scoreboards are handled, the power
level is not guarenteed to show up at any given location in the
scoreboard, but is instead displayed in gold so that it can be easily
found.
Lastly, the scoreboard area is also now used for displaying current data
on skills when the relevant /<skillname> command is used. The effects and
ability stats will still be shown in chat, but the current level, xp, and
remaining xp will be shown in the scoreboard.
2013-04-29 15:45:07 -04:00
GJ
fba131936a
Fix issue with tab-completing /party commands.
2013-04-28 01:11:51 -04:00
GJ
98dc7b853a
Protect our managers.
2013-04-25 09:16:42 -04:00
GJ
eea5784527
Abstract our database operations into a single class.
...
This allows the logic between SQL and Flatfile to remain more hidden in
most cases and makes the code easier to read.
2013-04-25 07:41:23 -04:00
GJ
8af425d067
Make this a bit more sane.
2013-04-18 09:09:12 -04:00
GJ
c3845abd2a
Clean up a bit, and make the /party itemshare command recognize the new
...
"misc" option
2013-04-18 08:11:47 -04:00
GJ
377ed9e8e5
Fix not being able to change party owners.
2013-04-17 07:07:54 -04:00
GJ
be76fe61d8
Fixed being unable to kick party members.
2013-04-17 07:05:28 -04:00
GJ
07ba7a8d9e
Nerf fishing again... AGAIN
2013-04-16 23:48:36 -04:00
GJ
2be3e3b43c
Changed Berserk to add items to inventory rather than denying pickup
2013-04-16 23:44:41 -04:00
GJ
c9a53bdaca
Fixed NPE when trying to tab-complete /mctop
2013-04-15 12:52:11 -04:00
TfT_02
682c2631f0
Fixed bug where players were able to join the same party multiple times
...
This change should automagically fix broken parties which have multiple
instances of the same player in it.
This will not fix bugged players who have joined multiple parties.
2013-04-13 00:41:36 +02:00
GJ
5dc40f3c03
Nerf fishing... again.
2013-04-12 17:48:04 -04:00
GJ
569e87847f
Fixed fishing chance display values.
2013-04-12 10:25:00 -04:00
GJ
27e0a9d3b6
Fixed experience commands affecting all skills. Fixes #951
2013-04-11 09:55:39 -04:00
GJ
14630fe956
Nerfin' it.
2013-04-10 18:44:11 -04:00
TfT_02
0ab1986202
Set a seperate cooldowns between getting hurt and teleportations
...
Closes #880
2013-04-10 17:19:14 +02:00
TfT_02
e11dc680de
Add configurable warmup and cooldown timers for party teleportation
...
Closes #348
2013-04-10 17:18:06 +02:00
GJ
8b21aea9c7
Check Fisherman's Diet permission when checking for display headers.
2013-04-09 20:53:55 -04:00
GJ
4f87cb6446
Added "Master Angler" ability to Fishing.
...
This ability increases the chance that a fish will bite the line while
fishing.
2013-04-09 20:53:54 -04:00
GJ
b391a53c6b
Make our commands support tab-complete.
2013-04-08 17:34:23 -04:00
GJ
31f36935d3
Avoid NPE when using experience commands on offline players.
2013-04-07 09:01:31 -04:00
TfT_02
a14fc3e3c9
Fixed broken /party chat command
...
Closes #931
2013-04-06 12:20:20 +02:00
GJ
25dfa6d34d
Better way to get the HUD type.
2013-04-04 23:15:37 -04:00
GJ
da29185b7d
Added health display for mobs during combat.
...
During combat, players will now see a healthbar appear over the head of
hostile mobs when they are damaged. This healthbar will have two display
options - HEARTS and BAR - which can be changed via the /mobhealth
command.
New Permissions:
mcmmo.mobhealthdisplay - Allows viewing of mob health display
mcmmo.commands.mobhealth - Allows access to the /mobhealth command
New Config Options (config.yml):
Mob_Healthbar.Display_Type - the default health display type
Mob_Healthbar.Display_Time - the amount of time to show health display
2013-04-04 22:11:11 -04:00
TfT_02
6d47e43ba9
Display partial names when trying to use the ptp command
2013-04-04 22:50:22 +02:00
TfT_02
f1c16df63b
Added new permission node for party teleportation.
...
`mcmmo.commands.ptp.send`
This permission node will be check before sending a teleport request
(or teleporting the sender if no request is required), this allows
admins to grant certain groups of users permissions to accept incoming
party teleport request without being able to send ptp requests
themselves.
Closes #927
2013-04-04 22:20:19 +02:00
GJ
802ad84613
Fixed Berserk getting "stuck" when /mcrefresh is used.
2013-04-02 17:38:33 -04:00
GJ
fa645b5e00
Clear after saving, save before clearing.
2013-04-02 08:29:38 -04:00
TfT_02
6fd599bd31
Fixed bug where /addxp was not processessing level-ups for online players
...
Fixes #918
2013-04-01 22:54:36 +02:00
GJ
afd706bed8
Fix NPE with smelting & /mctop. Fixes #917
2013-04-01 16:41:58 -04:00
TfT_02
fc8ad40b00
Fixed bug where /addxp was setting instead of adding experience
...
Fixes #898
2013-03-30 10:50:05 +01:00
TfT_02
d778293531
Use full player names instead of partial names
2013-03-27 21:25:59 +01:00
TfT_02
1f25b0b00b
Use positive page numbers when a player uses /mctop -1
2013-03-27 20:37:03 +01:00
TfT_02
287842c675
Fixed bug which causes a NPE when trying to use /mcrefresh from the console
2013-03-27 20:17:54 +01:00
TfT_02
3ae9956df9
Actually fix partial name matching when using /mcrank
...
Fixes #878
2013-03-24 16:53:01 +01:00
TfT_02
78109eb499
Revert "Fixes partial name matching with /mcrank"
...
This reverts commit f9a823e4b0
.
2013-03-24 16:30:27 +01:00
TfT_02
f9a823e4b0
Fixes partial name matching with /mcrank
2013-03-23 16:22:48 +01:00
TfT_02
9b685be84e
More inverted checkPlayerExistence() checks
2013-03-22 19:08:10 +01:00
TfT_02
96f9d2a030
Fixed broken /party invite
command
2013-03-22 19:06:21 +01:00
TfT_02
2b7178fb00
Fixed broken /party join command
...
Fixes #863
2013-03-22 19:02:51 +01:00
TfT_02
145a47c890
Fixed a NPE when trying to ptp to a non-existing player
2013-03-21 23:09:44 +01:00
TfT_02
70160468c0
Fix a NPE when trying to join a non-existing player
...
Fixes #860
2013-03-21 22:04:52 +01:00
GJ
399bf8e3b9
Use BukkitRunnable.
2013-03-20 03:11:16 -04:00
GJ
255dece550
Move Arcane Forging to it's own class to match the structure we used
...
with Blast Mining.
2013-03-18 14:02:53 -04:00
GJ
dafa690a09
Make /mcnotify match the process of the other commands for getting the
...
mcMMOPlayer object.
2013-03-16 16:16:22 -04:00
GJ
4cd4223ee0
Fixed /skillreset being broken.
2013-03-16 16:16:22 -04:00
GJ
3ac5ac385d
Fix issue with double drop display values.
2013-03-16 16:16:21 -04:00
GJ
2838a52e0c
Clean up on all of our commands. Abstracted experience commands and
...
hardcore commands. Moved lots of duplicated code to functions in
CommandUtils.java. Split /ptp into individual commands, just like /party.
Used ternary logic to simplify some of our /skillname stat displays. Fixed
skill guide to not allow for negative pages. Simplified logic for many
/skillname data calculations. Use permission checks to prevent calculating
data that will never be displayed. Made the skill guide into its own
command.
2013-03-16 03:17:00 -04:00
GJ
9aa676cee1
We don't need to have two different executors for these commands.
2013-03-11 22:51:44 -04:00
GJ
eabf0f7f82
No need to use an empty locale string for this.
2013-03-11 21:06:56 -04:00
GJ
d0171809ec
Fixed bug with '/party chat (on|off)' and '/partychat (on|off)' not
...
working
2013-03-11 21:06:26 -04:00
GJ
410c946faf
Tidying up Permission checks for /mcrank and /mctop
2013-03-11 12:48:00 -04:00
GJ
9eba2c683b
Use equalsIgnoreCase() instead of equals(), and use == for compaing
...
worlds.
Fixes #815
2013-03-10 18:06:10 -04:00
T00thpick1
8059636b62
Permissions for stat displays
2013-03-10 15:50:10 -04:00
GJ
c0b4a33346
Importing Bukkit is usually bad.
2013-03-10 15:07:07 -04:00
GJ
3f71dab0b1
Improved stats display for child skills
2013-03-08 08:39:28 -05:00
GJ
f6a18ef777
Move Salvage functions into Repair
2013-03-06 11:31:51 -05:00
GJ
e5f6da01ec
Create a proper RepairManager to match the others, rename our old
...
RepairManager to RepairableManager.
2013-03-06 09:37:09 -05:00
TfT_02
3440833af8
Fixed bug where the PTP cooldown was being read improperly
2013-03-05 00:48:48 +01:00
TfT_02
1e738263bc
Remove the ptp request after using /ptp accept
2013-03-05 00:30:48 +01:00
TfT_02
9cf322ca0b
Fixed NPE with /ptp <accept|toggle|acceptall>
2013-03-05 00:30:07 +01:00
bm01
c0b7f8a323
Moved everything that could be moved from PlayerProfile to McMMOPlayer
...
PlayerProfile now only store stored (flatfile or MySQL) data
2013-03-03 17:06:32 +01:00