mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
fix trophies
This commit is contained in:
parent
d1344c0610
commit
c4342e20af
@ -8,3 +8,5 @@ INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('console.mode', '1');
|
||||
|
||||
-- Youtube Api v3 key to YoutubeManager
|
||||
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('youtube.apikey', '');
|
||||
|
||||
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('hotel.trophies.length.max', '300');
|
@ -1002,6 +1002,10 @@ public class CatalogManager {
|
||||
extradata = "UMAD";
|
||||
}
|
||||
|
||||
if (extradata.length() > Emulator.getConfig().getInt("hotel.trophies.length.max", 300)) {
|
||||
extradata = extradata.substring(0, Emulator.getConfig().getInt("hotel.trophies.length.max", 300));
|
||||
}
|
||||
|
||||
extradata = habbo.getClient().getHabbo().getHabboInfo().getUsername() + (char) 9 + Calendar.getInstance().get(Calendar.DAY_OF_MONTH) + "-" + (Calendar.getInstance().get(Calendar.MONTH) + 1) + "-" + Calendar.getInstance().get(Calendar.YEAR) + (char) 9 + Emulator.getGameEnvironment().getWordFilter().filter(extradata.replace(((char) 9) + "", ""), habbo);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user